diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-04-24 00:25:06 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-06 18:11:26 -0400 |
commit | 5787cacd0bd5ee016ad807b244550d34fe2beebe (patch) | |
tree | d9303fd0c5767f945c13dfc34eb0b16a4f4d2730 /drivers/target/target_core_tmr.c | |
parent | cf572a9627c9ae86082216de109780c1d2e2ee28 (diff) |
target: remove struct se_task
We can use struct se_cmd for everything it did. Make sure to pass the S/G
list and data direction to the execution function to ease adding back BIDI
support later on.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_tmr.c')
-rw-r--r-- | drivers/target/target_core_tmr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index e0ffbdc4a486..6e2378a88bda 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c | |||
@@ -374,13 +374,11 @@ static void core_tmr_drain_cmd_list( | |||
374 | struct se_queue_obj *qobj = &dev->dev_queue_obj; | 374 | struct se_queue_obj *qobj = &dev->dev_queue_obj; |
375 | struct se_cmd *cmd, *tcmd; | 375 | struct se_cmd *cmd, *tcmd; |
376 | unsigned long flags; | 376 | unsigned long flags; |
377 | |||
377 | /* | 378 | /* |
378 | * Release all commands remaining in the struct se_device cmd queue. | 379 | * Release all commands remaining in the per-device command queue. |
379 | * | 380 | * |
380 | * This follows the same logic as above for the struct se_device | 381 | * This follows the same logic as above for the state list. |
381 | * struct se_task state list, where commands are returned with | ||
382 | * TASK_ABORTED status, if there is an outstanding $FABRIC_MOD | ||
383 | * reference, otherwise the struct se_cmd is released. | ||
384 | */ | 382 | */ |
385 | spin_lock_irqsave(&qobj->cmd_queue_lock, flags); | 383 | spin_lock_irqsave(&qobj->cmd_queue_lock, flags); |
386 | list_for_each_entry_safe(cmd, tcmd, &qobj->qobj_list, se_queue_node) { | 384 | list_for_each_entry_safe(cmd, tcmd, &qobj->qobj_list, se_queue_node) { |