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

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