aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-10-08 16:59:52 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-10-23 23:20:39 -0400
commit39c05f321a4b27f3036392eed68bd94ce2267155 (patch)
tree28f5db67b1ac89444428cc03d043481b51fbac71 /drivers/target/iscsi/iscsi_target.c
parent82f1c8a4e7739eae9f1c32c2c419efdc19b8af41 (diff)
target: Remove session_reinstatement parameter from ->transport_wait_for_tasks
This patch removes the unnecessary session_reinstatement parameter from se_cmd->transport_wait_for_tasks(), logic in transport_generic_wait_for_tasks, and usage within iscsi-target code. This also includes the removal of the 'bool' return from transport_put_cmd() + transport_generic_free_cmd() that is no longer necessary. Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
-rw-r--r--drivers/target/iscsi/iscsi_target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 7dc2cfe9431c..354a8339a3f9 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3960,7 +3960,7 @@ static void iscsit_release_commands_from_conn(struct iscsi_conn *conn)
3960 * iscsit_get_lun_for_cmd() in iscsit_handle_scsi_cmd(). 3960 * iscsit_get_lun_for_cmd() in iscsit_handle_scsi_cmd().
3961 */ 3961 */
3962 if (cmd->tmr_req && se_cmd->transport_wait_for_tasks) 3962 if (cmd->tmr_req && se_cmd->transport_wait_for_tasks)
3963 se_cmd->transport_wait_for_tasks(se_cmd, 1, 1); 3963 se_cmd->transport_wait_for_tasks(se_cmd, 1);
3964 else if (cmd->se_cmd.se_cmd_flags & SCF_SE_LUN_CMD) 3964 else if (cmd->se_cmd.se_cmd_flags & SCF_SE_LUN_CMD)
3965 transport_release_cmd(se_cmd); 3965 transport_release_cmd(se_cmd);
3966 else 3966 else
@@ -3976,7 +3976,7 @@ static void iscsit_release_commands_from_conn(struct iscsi_conn *conn)
3976 se_cmd = &cmd->se_cmd; 3976 se_cmd = &cmd->se_cmd;
3977 3977
3978 if (se_cmd->transport_wait_for_tasks) 3978 if (se_cmd->transport_wait_for_tasks)
3979 se_cmd->transport_wait_for_tasks(se_cmd, 1, 1); 3979 se_cmd->transport_wait_for_tasks(se_cmd, 1);
3980 3980
3981 spin_lock_bh(&conn->cmd_lock); 3981 spin_lock_bh(&conn->cmd_lock);
3982 } 3982 }