Commented out required by iSCSI RFC, but not needed for processing, check of LUN...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 12 Feb 2010 13:12:58 +0000 (13:12 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 12 Feb 2010 13:12:58 +0000 (13:12 +0000)
Reported and tested by Ladislav PaĊĦek <pasek@valbek.cz>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1500 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/kernel/iscsi.c

index 33d8a0f..7fda14b 100644 (file)
@@ -1956,6 +1956,7 @@ static int data_out_start(struct iscsi_cmnd *cmnd)
        }
 
        /* Crazy iSCSI spec requires us to make this unneeded check */
+#if 0 /* ...but some initiators (Windows) don't care to correctly set it */
        orig_req_hdr = &orig_req->pdu.bhs;
        if (unlikely(orig_req_hdr->lun != req_hdr->lun)) {
                PRINT_ERROR("Wrong LUN (%lld) in Data-Out PDU (expected %lld), "
@@ -1964,6 +1965,7 @@ static int data_out_start(struct iscsi_cmnd *cmnd)
                create_reject_rsp(orig_req, ISCSI_REASON_PROTOCOL_ERROR, false);
                goto go;
        }
+#endif
 
 go:
        if (req_hdr->flags & ISCSI_FLG_FINAL)