e7a346
From c5bde98eb28ed3ae6707b7eca3c95f4e5e386c23 Mon Sep 17 00:00:00 2001
e7a346
From: Mohit Agrawal <moagrawa@redhat.com>
e7a346
Date: Wed, 26 Sep 2018 15:23:28 +0530
e7a346
Subject: [PATCH 392/399] glusterd: don't wait for blockers flag for stop
e7a346
 volume
e7a346
e7a346
With commit 4f6ae8 even though the overall transaction time for gluster
e7a346
volume stop can be reduced, but based on testing it can't be guaranteed
e7a346
that the transaction can finish in 3 minutes before the unlock timer
e7a346
gets kicked in. The ground problem to this is the command serialization
e7a346
which atomic field 'blockers' does for volume stop operation.
e7a346
e7a346
This patch removes that dependency for volume stop not to wait for
e7a346
blockers.
e7a346
e7a346
> Change-Id: Ifaf120115dc7ed21cf21e65e25c4ec7c61ab8258
e7a346
> Fixes: bz#1631128
e7a346
> Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
e7a346
> (Cherry picked from commit f72f18b3bf7f9535827a059a5090476b3141723f)
e7a346
> (Reviewed on upstream link https://review.gluster.org/#/c/glusterfs/+/21242/)
e7a346
e7a346
Change-Id: Ia3cb4d812ea1c633b7a501a03e0bf25a20b45a8e
e7a346
BUG: 1631329
e7a346
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/151065
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
e7a346
---
e7a346
 xlators/mgmt/glusterd/src/glusterd-op-sm.c | 1 -
e7a346
 1 file changed, 1 deletion(-)
e7a346
e7a346
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
e7a346
index df5b5c2..716d3f2 100644
e7a346
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
e7a346
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
e7a346
@@ -6286,7 +6286,6 @@ glusterd_op_commit_perform (glusterd_op_t op, dict_t *dict, char **op_errstr,
e7a346
                         break;
e7a346
 
e7a346
                 case GD_OP_STOP_VOLUME:
e7a346
-                        glusterd_wait_for_blockers (this->private);
e7a346
                         ret = glusterd_op_stop_volume (dict);
e7a346
                         break;
e7a346
 
e7a346
-- 
e7a346
1.8.3.1
e7a346