commit | 5dd9feafb351a8bf304292623cbc63335c34d279 | [log] [tgz] |
---|---|---|
author | Steven Whitehouse <swhiteho@redhat.com> | Fri Jul 28 14:52:33 2006 -0400 |
committer | Steven Whitehouse <swhiteho@redhat.com> | Fri Jul 28 14:52:33 2006 -0400 |
tree | 14cf06e6490da4dce49e7dcc3b503a14df7d30f2 | |
parent | 2b98a54f796f701604737abd9c2017948e9e010b [diff] [blame] |
[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>
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 91ac9c9..b6edf7c 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c
@@ -771,6 +771,7 @@ 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); }