diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2010-01-25 11:20:19 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2010-02-03 09:47:04 +0000 |
commit | e402746a945ceb9d0486a8e3d5917c9228fa4404 (patch) | |
tree | c2e6c4d619c1cf35e97b16a9849517871c15d97b /fs/gfs2/incore.h | |
parent | 1a45dcfe2525e9432cb4aba461d4994fc2befe42 (diff) | |
download | lwn-e402746a945ceb9d0486a8e3d5917c9228fa4404.tar.gz lwn-e402746a945ceb9d0486a8e3d5917c9228fa4404.zip |
GFS2: Wait for unlock completion on umount
This patch adds a wait on umount between the point at which we
dispose of all glocks and the point at which we unmount the
lock protocol. This ensures that we've received all the replies
to our unlock requests before we stop the locking.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reported-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 4792200978c8..bc0ad158e6b4 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -544,6 +544,8 @@ struct gfs2_sbd { struct gfs2_holder sd_live_gh; struct gfs2_glock *sd_rename_gl; struct gfs2_glock *sd_trans_gl; + wait_queue_head_t sd_glock_wait; + atomic_t sd_glock_disposal; /* Inode Stuff */ |