connect: invoke all callbacks for dropped PDUs
if we drop a PDU which has a callback we should invoke it otherwise the caller may wait infinetely for a command completion. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -344,6 +344,10 @@ void iscsi_reconnect_cb(struct iscsi_context *iscsi _U_, int status,
|
|||||||
* All other PDUs are discarded at this point.
|
* All other PDUs are discarded at this point.
|
||||||
* This includes DATA-OUT, NOP and task management.
|
* This includes DATA-OUT, NOP and task management.
|
||||||
*/
|
*/
|
||||||
|
if (pdu->callback) {
|
||||||
|
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
|
||||||
|
NULL, pdu->private_data);
|
||||||
|
}
|
||||||
iscsi_free_pdu(old_iscsi, pdu);
|
iscsi_free_pdu(old_iscsi, pdu);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user