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:
Ronnie Sahlberg
2015-02-24 07:01:20 -08:00
parent 6822baee3f
commit ec4266392e

View File

@@ -343,9 +343,9 @@ try_again:
if (pdu->flags & ISCSI_PDU_DROP_ON_RECONNECT) {
/*
* We don't want to requeue NOPs or DATA-OUT PDUs.
* Any DATA-OUTs we need will be regenerated when we
* call iscsi_scsi_command_async() below.
* We only want to re-queue SCSI COMMAND PDUs.
* All other PDUs are discarded at this point.
* This includes DATA-OUT, NOP and task management.
*/
iscsi_free_pdu(old_iscsi, pdu);
continue;