aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-04-24 00:25:04 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-05-06 18:11:25 -0400
commit785fdf70b2b46588c973ad8b65ed62871994452f (patch)
treee564a42e34e5a471f6d69a3d8e5e845ebf8c8eef /include/target
parent4101f0a89d4eb13f04cb0344d59a335b862ca5f9 (diff)
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/target')
-rw-r--r--include/target/target_core_base.h7
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 {
492 u16 task_flags; 492 u16 task_flags;
493 u8 task_scsi_status; 493 u8 task_scsi_status;
494 enum dma_data_direction task_data_direction; 494 enum dma_data_direction task_data_direction;
495 struct list_head t_list;
496 struct list_head t_execute_list; 495 struct list_head t_execute_list;
497 struct list_head t_state_list; 496 struct list_head t_state_list;
498 bool t_state_active; 497 bool t_state_active;
@@ -573,7 +572,6 @@ struct se_cmd {
573 atomic_t t_se_count; 572 atomic_t t_se_count;
574 atomic_t t_task_cdbs_left; 573 atomic_t t_task_cdbs_left;
575 atomic_t t_task_cdbs_ex_left; 574 atomic_t t_task_cdbs_ex_left;
576 atomic_t t_task_cdbs_sent;
577 unsigned int transport_state; 575 unsigned int transport_state;
578#define CMD_T_ABORTED (1 << 0) 576#define CMD_T_ABORTED (1 << 0)
579#define CMD_T_ACTIVE (1 << 1) 577#define CMD_T_ACTIVE (1 << 1)
@@ -598,10 +596,7 @@ struct se_cmd {
598 struct scatterlist *t_bidi_data_sg; 596 struct scatterlist *t_bidi_data_sg;
599 unsigned int t_bidi_data_nents; 597 unsigned int t_bidi_data_nents;
600 598
601 /* Used for BIDI READ */ 599 struct se_task *t_task;
602 struct list_head t_task_list;
603 u32 t_task_list_num;
604
605}; 600};
606 601
607struct se_ua { 602struct se_ua {