From 61db7125a5b8db0bd4dd09b423bb54415c8bd484 Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Thu, 13 Jul 2017 12:23:13 +0530 Subject: posix: brick process crash after stop the volume while brick mux is on Problem: sometime brick process is getting crash after stop the volume while brick mux is enabled and no. of volumes are high Solution: In posix notify at the time close mount_lock dir , dir handle needs to set NULL to avoid the reuse of same dir handle. BUG: 1470533 Change-Id: Ifd41c20b3c597317851f91049a7c801949840b16 Signed-off-by: Mohit Agrawal Reviewed-on: https://review.gluster.org/17767 Smoke: Gluster Build System Reviewed-by: Amar Tumballi CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/storage/posix/src/posix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 2f1ffe98da2..5f65172cdb8 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -6851,8 +6851,10 @@ notify (xlator_t *this, (void) gf_thread_cleanup_xint (priv->fsyncer); priv->fsyncer = 0; } - if (priv->mount_lock) + if (priv->mount_lock) { (void) sys_closedir (priv->mount_lock); + priv->mount_lock = NULL; + } break; default: -- cgit