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