Hi Nab,
Had a query regarding Read10 with Immediate bit set.The LIO target seems
to reject Read10 with immediate flag set.It would be great if you could
tell me why is it doing so.
I am basically trying to recover dropped PDUs(with immediate bit set)
within a session.What i am observing is for every retransmitted Read10
PDU with immediate set the target is rejecting it.
10.3. SCSI Command
The format of the SCSI Command PDU is:
Byte/ 0 | 1 | 2 | 3 |
/ | | | |
|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|0 1 2 3 4 5 6 7|
+---------------+---------------+---------------+---------------+
0|.|I| 0x01 |F|R|W|. .|ATTR | Reserved |
+---------------+---------------+---------------+---------------+
./drivers/target/iscsi/iscsi_target.c: iscsit_setup_scsi_cmd()
pr_err("opcode=[%x],flags=[%x]\n",hdr->opcode,hdr->flags);
if (hdr->opcode & ISCSI_OP_IMMEDIATE) {
pr_err("Illegally set Immediate Bit in iSCSI Initiator"
" Scsi Command PDU.\n");
return iscsit_add_reject_cmd(cmd,
ISCSI_REASON_BOOKMARK_INVALID, buf);
}
dmesg output:
[ 269.314155] opcode=[41],flags=[c1]
[ 269.315774] Illegally set Immediate Bit in iSCSI Initiator Scsi
Command PDU.
Regards
Santosh
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html