Blame SOURCES/0011-libiscsi-fix-discovery-request-timeout-regression.patch

46c2f0
From 2e660a78632545e98f7c9e2ffb8518512c0db5ff Mon Sep 17 00:00:00 2001
46c2f0
From: rpm-build <rpm-build>
46c2f0
Date: Tue, 28 Feb 2017 09:00:41 -0800
46c2f0
Subject: [PATCH] libiscsi: fix discovery request timeout regression
46c2f0
46c2f0
---
46c2f0
 libiscsi/libiscsi.c | 2 ++
46c2f0
 1 file changed, 2 insertions(+)
46c2f0
46c2f0
diff --git a/libiscsi/libiscsi.c b/libiscsi/libiscsi.c
46c2f0
index 755c18c..bb17dfc 100644
46c2f0
--- a/libiscsi/libiscsi.c
46c2f0
+++ b/libiscsi/libiscsi.c
46c2f0
@@ -136,6 +136,7 @@ int libiscsi_discover_sendtargets(struct libiscsi_context *context,
46c2f0
 
46c2f0
 	/* Fill the drec struct with all needed info */
46c2f0
 	memset(&drec, 0, sizeof drec);
46c2f0
+	drec.iscsid_req_tmo = -1;
46c2f0
 	idbm_sendtargets_defaults(&drec.u.sendtargets);
46c2f0
 	drec.type = DISCOVERY_TYPE_SENDTARGETS;
46c2f0
 	strlcpy(drec.address, address, sizeof(drec.address));
46c2f0
@@ -228,6 +229,7 @@ int libiscsi_discover_firmware(struct libiscsi_context *context,
46c2f0
 	CHECK(iface_create_ifaces_from_boot_contexts(&ifaces, &targets));
46c2f0
 
46c2f0
 	memset(&drec, 0, sizeof(drec));
46c2f0
+	drec.iscsid_req_tmo = -1;
46c2f0
 	drec.type = DISCOVERY_TYPE_FW;
46c2f0
 	rc = idbm_bind_ifaces_to_nodes(discovery_fw, &drec, &ifaces, &rec_list);
46c2f0
 	if (rc) {
46c2f0
-- 
46c2f0
2.21.0
46c2f0