浏览代码

[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>
Steven Whitehouse 19 年之前
父节点
当前提交
5dd9feafb3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/gfs2/glock.c

+ 1 - 0
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);
 }