From a894d44427649e99d4344a241dc2f9d584a9a691 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 24 Aug 2017 12:39:47 +0530 Subject: 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. Change-Id: I981d6f1cc0087037f1927062c2770a4d5026a619 BUG: 1484225 Signed-off-by: Milind Changire 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 --- xlators/mgmt/glusterd/src/glusterd-rebalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd') diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 70b391e4188..58dcb860ca3 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, -- cgit