diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-04-24 00:25:08 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-05-06 15:11:27 -0700 |
commit | d43d6aea844e66b847e3a0e5cb2c24b6ba84908a (patch) | |
tree | 8a9a365b75d1bd186f29287a09702ba4e27b0c33 /drivers/target/target_core_tmr.c | |
parent | 226b6faf2e30e272ee5a52c2ed0a8c8a1d7b47d1 (diff) | |
download | linux-stable-d43d6aea844e66b847e3a0e5cb2c24b6ba84908a.tar.gz linux-stable-d43d6aea844e66b847e3a0e5cb2c24b6ba84908a.tar.bz2 linux-stable-d43d6aea844e66b847e3a0e5cb2c24b6ba84908a.zip |
target: remove the t_task_cdbs_ex_left field in struct se_cmd
Now that tasks are gone we are guaranteed to only get a single completion
per command, and thus don't need this counter.
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 | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index bd0b4e62e9c6..84caf1bed9a3 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -333,13 +333,6 @@ static void core_tmr_drain_state_list( spin_lock_irqsave(&cmd->t_state_lock, flags); target_stop_cmd(cmd, &flags); - if (!atomic_dec_and_test(&cmd->t_task_cdbs_ex_left)) { - spin_unlock_irqrestore(&cmd->t_state_lock, flags); - pr_debug("LUN_RESET: Skipping cmd: %p, dev: %p for" - " t_task_cdbs_ex_left: %d\n", cmd, dev, - atomic_read(&cmd->t_task_cdbs_ex_left)); - continue; - } fe_count = atomic_read(&cmd->t_fe_count); if (!(cmd->transport_state & CMD_T_ACTIVE)) { |