|
@@ -736,7 +736,7 @@ void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown)
|
|
|
* Fallthrough
|
|
|
*/
|
|
|
case ISCSI_OP_SCSI_TMFUNC:
|
|
|
- rc = transport_generic_free_cmd(&cmd->se_cmd, 1);
|
|
|
+ rc = transport_generic_free_cmd(&cmd->se_cmd, shutdown);
|
|
|
if (!rc && shutdown && se_cmd && se_cmd->se_sess) {
|
|
|
__iscsit_free_cmd(cmd, true, shutdown);
|
|
|
target_put_sess_cmd(se_cmd->se_sess, se_cmd);
|
|
@@ -752,7 +752,7 @@ void iscsit_free_cmd(struct iscsi_cmd *cmd, bool shutdown)
|
|
|
se_cmd = &cmd->se_cmd;
|
|
|
__iscsit_free_cmd(cmd, true, shutdown);
|
|
|
|
|
|
- rc = transport_generic_free_cmd(&cmd->se_cmd, 1);
|
|
|
+ rc = transport_generic_free_cmd(&cmd->se_cmd, shutdown);
|
|
|
if (!rc && shutdown && se_cmd->se_sess) {
|
|
|
__iscsit_free_cmd(cmd, true, shutdown);
|
|
|
target_put_sess_cmd(se_cmd->se_sess, se_cmd);
|