task_mgmt.c: drop tmgmt pdus on reconnect

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2015-02-23 20:30:29 -08:00
parent 0a9bd03b2d
commit 63c2e7583d
+1 -1
View File
@@ -53,7 +53,7 @@ iscsi_task_mgmt_async(struct iscsi_context *iscsi,
ISCSI_PDU_SCSI_TASK_MANAGEMENT_REQUEST, ISCSI_PDU_SCSI_TASK_MANAGEMENT_REQUEST,
ISCSI_PDU_SCSI_TASK_MANAGEMENT_RESPONSE, ISCSI_PDU_SCSI_TASK_MANAGEMENT_RESPONSE,
iscsi_itt_post_increment(iscsi), iscsi_itt_post_increment(iscsi),
0); ISCSI_PDU_DROP_ON_RECONNECT);
if (pdu == NULL) { if (pdu == NULL) {
iscsi_set_error(iscsi, "Failed to allocate task mgmt pdu"); iscsi_set_error(iscsi, "Failed to allocate task mgmt pdu");
return -1; return -1;