Blame SOURCES/0001-iscsiuio-allow-processing-of-iscsid-requests-in-DHCP.patch

3d2430
From 6997f36c44cd7046d1be1248fd864d9a068faff5 Mon Sep 17 00:00:00 2001
3d2430
From: Nilesh Javali <njavali@marvell.com>
3d2430
Date: Tue, 25 Jun 2019 01:05:01 -0400
3d2430
Subject: [PATCH 1/1] iscsiuio: allow processing of iscsid requests in DHCP
3d2430
 failure condition
3d2430
3d2430
In the event of DHCP failure, killing of enable_nic_thread did not
3d2430
process any iscsid requests leading to error,
3d2430
iscsistart: Could not broadcast to uIP after 5 tries
3d2430
and login failure to next active path.
3d2430
Do not kill enable_nic_thread and allow further processing of iscsid
3d2430
requests and performing login to next active path.
3d2430
3d2430
Signed-off-by: Nilesh Javali <njavali@marvell.com>
3d2430
---
3d2430
 iscsiuio/src/unix/nic.c | 15 ---------------
3d2430
 1 file changed, 15 deletions(-)
3d2430
3d2430
diff --git a/iscsiuio/src/unix/nic.c b/iscsiuio/src/unix/nic.c
3d2430
index bd415c2..f449935 100644
3d2430
--- a/iscsiuio/src/unix/nic.c
3d2430
+++ b/iscsiuio/src/unix/nic.c
3d2430
@@ -1318,21 +1318,6 @@ static int do_acquisition(nic_t *nic, nic_interface_t *nic_iface,
3d2430
 			/* For DHCPv4 failure, the ustack must be cleaned so
3d2430
 			   it can re-acquire on the next iscsid request */
3d2430
 			uip_reset(&nic_iface->ustack);
3d2430
-
3d2430
-			/*  Signal that the device enable is
3d2430
-			    done */
3d2430
-			pthread_cond_broadcast(&nic->enable_done_cond);
3d2430
-			pthread_mutex_unlock(&nic->nic_mutex);
3d2430
-
3d2430
-			if (nic->enable_thread == INVALID_THREAD)
3d2430
-				goto dhcp_err;
3d2430
-
3d2430
-			rc = pthread_cancel(nic->enable_thread);
3d2430
-			if (rc != 0)
3d2430
-				LOG_ERR(PFX "%s: Couldn't cancel "
3d2430
-					"enable nic thread", nic->log_name);
3d2430
-dhcp_err:
3d2430
-			pthread_mutex_lock(&nic->nic_mutex);
3d2430
 			goto error;
3d2430
 		}
3d2430
 
3d2430
-- 
3d2430
2.21.0
3d2430