iSCSI: when reconnecting we should not automatically requeue any DATA-OUT PDUs
Dont requeue data-out pdus, or other pdus with the DELETE_WHEN_SENT flag, such as nops. These, like the DATA-OUT pdu will instead be automatically re-sent when the original write command is sent again. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -285,6 +285,15 @@ try_again:
|
||||
continue;
|
||||
}
|
||||
|
||||
if (pdu->flags & ISCSI_PDU_DELETE_WHEN_SENT) {
|
||||
/* We dont want to requeue things like DATA-OUT since these guys
|
||||
* will be reissued automatically anyway once the corresponding
|
||||
* write command is replayed.
|
||||
*/
|
||||
iscsi_free_pdu(old_iscsi, pdu);
|
||||
continue;
|
||||
}
|
||||
|
||||
pdu->itt = iscsi->itt++;
|
||||
iscsi_pdu_set_itt(pdu, pdu->itt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user