summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawa@redhat.com>2017-07-13 12:23:13 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-07-13 12:39:25 +0000
commit61db7125a5b8db0bd4dd09b423bb54415c8bd484 (patch)
tree86fad2064b1e022d7f857011f1af8dfb3c64c717 /xlators/storage/posix/src/posix.c
parentf367671d451ae0fc3e178d26cae1880d59eb6ebd (diff)
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 <moagrawa@redhat.com> Reviewed-on: https://review.gluster.org/17767 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c4
1 files changed, 3 insertions, 1 deletions
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: