connect.c: improve comment in reconnect code that we ONLY requeue SCSI COMMAND
The only PDU type that does not have ISCSI_PDU_DROP_ON_RECONNECT is the SCSI COMMAND PDU. Thsi is the only PDU that we re-queue on reconnect. All other, including DATA-OUT, NOP, task management, PDUs are simply dropped. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
+3
-3
@@ -343,9 +343,9 @@ try_again:
|
|||||||
|
|
||||||
if (pdu->flags & ISCSI_PDU_DROP_ON_RECONNECT) {
|
if (pdu->flags & ISCSI_PDU_DROP_ON_RECONNECT) {
|
||||||
/*
|
/*
|
||||||
* We don't want to requeue NOPs or DATA-OUT PDUs.
|
* We only want to re-queue SCSI COMMAND PDUs.
|
||||||
* Any DATA-OUTs we need will be regenerated when we
|
* All other PDUs are discarded at this point.
|
||||||
* call iscsi_scsi_command_async() below.
|
* This includes DATA-OUT, NOP and task management.
|
||||||
*/
|
*/
|
||||||
iscsi_free_pdu(old_iscsi, pdu);
|
iscsi_free_pdu(old_iscsi, pdu);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user