iscsi-target: Fix reservation conflict -EBUSY response handling bug
[~shefty/rdma-dev.git] / drivers / target / iscsi / iscsi_target.c
index 44262908def547557e5c3fe0a8a8cd34a00dfbd7..501b27c18145af979ca5fcbbc60f38ee2f064287 100644 (file)
@@ -1028,7 +1028,7 @@ done:
                return iscsit_add_reject_from_cmd(
                                ISCSI_REASON_BOOKMARK_NO_RESOURCES,
                                1, 1, buf, cmd);
-       } else if (transport_ret == -EINVAL) {
+       } else if (transport_ret < 0) {
                /*
                 * Unsupported SAM Opcode.  CHECK_CONDITION will be sent
                 * in iscsit_execute_cmd() during the CmdSN OOO Execution