projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b98a54
)
[GFS2] Fix bug in clear_inode
author
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 28 Jul 2006 18:52:33 +0000
(14:52 -0400)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Fri, 28 Jul 2006 18:52:33 +0000
(14:52 -0400)
We should have been waiting for lock demotion to finish in
clear_inode.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/glock.c
b/fs/gfs2/glock.c
index 91ac9c9d4a9658e6b9ba5eba540a11cc0ffcba97..b6edf7c0923bc8fa045835dec36cf1d0e02bccf2 100644
(file)
--- 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);
}