Message ID | 20230725113335.194721-1-jirong.feng@easystack.cn |
---|---|
State | New |
Headers | show |
Series | [RFC] scsi: target: iscsi: Handle abort for ICF_OOO_CMDSN cmds | expand |
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index b516c2893420..27edc5eb9e6e 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -4236,7 +4236,8 @@ static void iscsit_release_commands_from_conn(struct iscsit_conn *conn) se_cmd->transport_state |= CMD_T_FABRIC_STOP; } - if (cmd->se_cmd.t_state == TRANSPORT_WRITE_PENDING) { + if (cmd->se_cmd.t_state == TRANSPORT_WRITE_PENDING || + cmd->cmd_flags & ICF_OOO_CMDSN) { /* * We never submitted the cmd to LIO core, so we have * to tell LIO to perform the completion process.