From e589d8de66d3325da8fbbbe44d1a5bd6335e08ab Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Wed, 4 Mar 2020 09:17:26 +0530 Subject: core[brick_mux]: brick crashed when creating and deleting volumes over time Problem: In brick_mux environment, while volumes are created/stopped in a loop after running a long time the main brick is crashed.The brick is crashed because the main brick process was not cleaned up memory for all objects at the time of detaching a volume. Below are the objects that are missed at the time of detaching a volume 1) xlator object for a brick graph 2) local_pool for posix_lock xlator 3) rpc object cleanup at quota xlator 4) inode leak at brick xlator Solution: To avoid the crash resolve all leak at the time of detaching a brick Change-Id: Ibb6e46c5fba22b9441a88cbaf6b3278823235913 updates: #977 Signed-off-by: Mohit Agrawal --- xlators/features/changelog/src/changelog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/changelog/src/changelog.c') diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c index 75d5ae267fd..37916f40882 100644 --- a/xlators/features/changelog/src/changelog.c +++ b/xlators/features/changelog/src/changelog.c @@ -2852,6 +2852,7 @@ fini(xlator_t *this) if (priv->active || priv->rpc_active) { /* terminate RPC server/threads */ changelog_cleanup_rpc(this, priv); + GF_FREE(priv->ev_dispatcher); } /* call barrier_disable to cancel timer */ if (priv->barrier_enabled) -- cgit