summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-07-28 20:52:33 +0200
committerSteven Whitehouse <swhiteho@redhat.com>2006-07-28 20:52:33 +0200
commit5dd9feafb351a8bf304292623cbc63335c34d279 (patch)
tree14cf06e6490da4dce49e7dcc3b503a14df7d30f2 /fs
parent[GFS2] Fix bug in super block reading code (diff)
downloadlinux-5dd9feafb351a8bf304292623cbc63335c34d279.tar.xz
linux-5dd9feafb351a8bf304292623cbc63335c34d279.zip
[GFS2] Fix bug in clear_inode
We should have been waiting for lock demotion to finish in clear_inode. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/glock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 91ac9c9d4a96..b6edf7c0923b 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -771,6 +771,7 @@ void gfs2_glock_inode_squish(struct inode *inode)
list_add_tail(&gh.gh_list, &gl->gl_waiters2);
run_queue(gl);
spin_unlock(&gl->gl_spin);
+ wait_for_completion(&gh.gh_wait);
gfs2_holder_uninit(&gh);
}