From f1fecf5fb3ff34945bbacd0b4806bc57b9ddc355 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 12 Sep 2014 13:06:57 +0530 Subject: test: cleanup should clean all left over (stale) mounts This is a temporary work around to fix the spurious failures seen in ec testcases. As per the initial analysis it looks like quota (glusterd_quota_initiate_fs_crawl) is causing a mount point in /tmp to be stale. Once the root cause is identified this fix can be reverted as well. Change-Id: I8686f144ed298124074f749e75c13028ec00be01 BUG: 1092850 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/8703 Tested-by: Gluster Build System Reviewed-by: Justin Clift Reviewed-by: Xavier Hernandez Reviewed-by: Vijay Bellur --- tests/include.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/include.rc b/tests/include.rc index 64a9d34dc99..98c449387e5 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -409,6 +409,9 @@ function cleanup() rm -rf $GLUSTERD_WORKDIR/* $B0/* /etc/glusterd/*; fi + # unmount all stale mounts from /tmp, This is a temporary work around + # till the stale mount in /tmp is found. + umount -l /tmp/mnt* 2>/dev/null umount -l $M0 2>/dev/null || umount -f $M0 2>/dev/null || true; umount -l $M1 2>/dev/null || umount -f $M1 2>/dev/null || true; umount -l $N0 2>/dev/null || umount -f $N0 2>/dev/null || true; -- cgit 5
summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-internal.h15
-rw-r--r--api/src/glfs-resolve.c19
-rw-r--r--api/src/glfs.c8
3 files changed, 28 insertions, 14 deletions
diff --git a/api/src/glfs-internal.h b/api/src/glfs-internal.h
index fc62bbf027d..a42822420ea 100644
--- a/api/src/glfs-internal.h
+++ b/api/src/glfs-internal.h
@@ -305,17 +305,26 @@ do { \
we can give up the mutex during syncop calls so
that bottom up calls (particularly CHILD_UP notify)
can do a mutex_lock() on @glfs without deadlocking
- the filesystem
+ the filesystem.
+
+ All the fops should wait