diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-04-24 06:25:04 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-07 00:11:25 +0200 |
commit | 785fdf70b2b46588c973ad8b65ed62871994452f (patch) | |
tree | e564a42e34e5a471f6d69a3d8e5e845ebf8c8eef /include | |
parent | target: always allocate a single task (diff) | |
download | linux-785fdf70b2b46588c973ad8b65ed62871994452f.tar.xz linux-785fdf70b2b46588c973ad8b65ed62871994452f.zip |
target: simplify command to task linkage
Now that we only have a single task per command we can use a direct pointer
to it instead of list.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/target/target_core_base.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 19b8b2381d75..382542af3120 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -492,7 +492,6 @@ struct se_task { u16 task_flags; u8 task_scsi_status; enum dma_data_direction task_data_direction; - struct list_head t_list; struct list_head t_execute_list; struct list_head t_state_list; bool t_state_active; @@ -573,7 +572,6 @@ struct se_cmd { atomic_t t_se_count; atomic_t t_task_cdbs_left; atomic_t t_task_cdbs_ex_left; - atomic_t t_task_cdbs_sent; unsigned int transport_state; #define CMD_T_ABORTED (1 << 0) #define CMD_T_ACTIVE (1 << 1) @@ -598,10 +596,7 @@ struct se_cmd { struct scatterlist *t_bidi_data_sg; unsigned int t_bidi_data_nents; - /* Used for BIDI READ */ - struct list_head t_task_list; - u32 t_task_list_num; - + struct se_task *t_task; }; struct se_ua { |