From 514f975626565abacbe62fb9d1c67d47d75e92a3 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 24 Aug 2017 12:39:47 +0530 Subject: [PATCH 605/605] glusterd: disable rpc_clnt_t after relalance process disconnection Problem: glusterd continues to connect to rebalance process even after the socket connection has disconnected. Solution: rpc_clnt_disable() disables the rpc_clnt_t object and disarms all relevant timers and drops refs to the rpc_clnt_t object and the transport as well. >Reviewed-on: https://review.gluster.org/18114 >Reviewed-by: MOHIT AGRAWAL >Tested-by: Atin Mukherjee >Reviewed-by: Atin Mukherjee >Smoke: Gluster Build System >CentOS-regression: Gluster Build System Change-Id: I981d6f1cc0087037f1927062c2770a4d5026a619 BUG: 1483956 Signed-off-by: Milind Changire Reviewed-on: https://code.engineering.redhat.com/gerrit/116301 Tested-by: Atin Mukherjee Reviewed-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 29b5233..5a3d591 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -145,7 +145,7 @@ __glusterd_defrag_notify (struct rpc_clnt *rpc, void *mydata, glusterd_store_perform_node_state_store (volinfo); - rpc_clnt_reconnect_cleanup (&defrag->rpc->conn); + rpc_clnt_disable (defrag->rpc); glusterd_defrag_rpc_put (defrag); if (defrag->cbk_fn) defrag->cbk_fn (volinfo, -- 1.8.3.1