diff options
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) { |