Skip to content

Commit

Permalink
[GFS2] Fix bug in clear_inode
Browse files Browse the repository at this point in the history
We should have been waiting for lock demotion to finish in
clear_inode.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jul 28, 2006
1 parent 2b98a54 commit 5dd9fea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/gfs2/glock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5dd9fea

Please sign in to comment.