f338ef
From 030b5681d47268c591a72035d5a2419234bd1f5f Mon Sep 17 00:00:00 2001
f338ef
From: Mohammed Rafi KC <rkavunga@redhat.com>
f338ef
Date: Thu, 11 Jul 2019 12:44:55 +0530
f338ef
Subject: [PATCH 236/255] Revert "shd/mux: Fix race between mux_proc unlink and
f338ef
 stop"
f338ef
f338ef
This reverts commit e386fb4f4baf834e6a8fc25cc2fbbb17eb0a7a56.
f338ef
f338ef
BUG: 1471742
f338ef
Change-Id: I6c52835981389fc5bfeb43483feb581ad8507990
f338ef
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
f338ef
Reviewed-on: https://code.engineering.redhat.com/gerrit/175945
f338ef
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
f338ef
Tested-by: RHGS Build Bot <nigelb@redhat.com>
f338ef
---
f338ef
 xlators/mgmt/glusterd/src/glusterd-shd-svc.c | 3 ---
f338ef
 1 file changed, 3 deletions(-)
f338ef
f338ef
diff --git a/xlators/mgmt/glusterd/src/glusterd-shd-svc.c b/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
f338ef
index dbe2560..d81d760 100644
f338ef
--- a/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
f338ef
+++ b/xlators/mgmt/glusterd/src/glusterd-shd-svc.c
f338ef
@@ -694,9 +694,6 @@ glusterd_shdsvc_stop(glusterd_svc_t *svc, int sig)
f338ef
         gf_is_service_running(svc->proc.pidfile, &pid;;
f338ef
         cds_list_del_init(&svc->mux_svc);
f338ef
         empty = cds_list_empty(&svc_proc->svcs);
f338ef
-        if (empty) {
f338ef
-            cds_list_del_init(&svc_proc->svc_proc_list);
f338ef
-        }
f338ef
     }
f338ef
     pthread_mutex_unlock(&conf->attach_lock);
f338ef
     if (empty) {
f338ef
-- 
f338ef
1.8.3.1
f338ef