summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-09-13 17:09:01 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-23 23:20:38 -0400
commit82f1c8a4e7739eae9f1c32c2c419efdc19b8af41 (patch)
treee4b9141c59cbc1402b96fb34003205fe90d362df /drivers/target/iscsi
parente6a2573f1f5d66f0456c433afdfc63f33fdf9008 (diff)
target: push session reinstatement out of transport_generic_free_cmd
Push session reinstatement out of transport_generic_free_cmd into the only caller that actually needs it. Clean up transport_generic_free_cmd a bit, and remove the useless comment. I'd love to add a more useful kerneldoc comment for it, but as this point I'm still a bit confused in where it stands in the command release stack. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi')
-rw-r--r--drivers/target/iscsi/iscsi_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 6a4ea29c2f36..7dc2cfe9431c 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3547,7 +3547,7 @@ get_immediate:
3547 iscsit_release_cmd(cmd); 3547 iscsit_release_cmd(cmd);
3548 else 3548 else
3549 transport_generic_free_cmd(&cmd->se_cmd, 3549 transport_generic_free_cmd(&cmd->se_cmd,
3550 1, 0); 3550 1);
3551 goto get_immediate; 3551 goto get_immediate;
3552 case ISTATE_SEND_NOPIN_WANT_RESPONSE: 3552 case ISTATE_SEND_NOPIN_WANT_RESPONSE:
3553 spin_unlock_bh(&cmd->istate_lock); 3553 spin_unlock_bh(&cmd->istate_lock);