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