diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2010-01-08 16:14:29 +0000 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2010-03-01 14:07:53 +0000 |
commit | c1184f8ab7ea26681f3cab18284a870aad678b0f (patch) | |
tree | fec6b61ba9b1aa16aab0d1dfabf63a21bbe47ac7 /fs/gfs2/super.c | |
parent | 009d851837ab26cab18adda6169a813f70b0b21b (diff) |
GFS2: Remove loopy umount code
As a consequence of the previous patch, we can now remove the
loop which used to be required due to the circular dependency
between the inodes and glocks. Instead we can just invalidate
the inodes, and then clear up any glocks which are left.
Also we no longer need the rwsem since there is no longer any
danger of the inode invalidation calling back into the glock
code (and from there back into the inode code).
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r-- | fs/gfs2/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index ad7bc2d25ac..e5e22629da6 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c @@ -859,6 +859,7 @@ restart: gfs2_clear_rgrpd(sdp); gfs2_jindex_free(sdp); /* Take apart glock structures and buffer lists */ + invalidate_inodes(sdp->sd_vfs); gfs2_gl_hash_clear(sdp); /* Unmount the locking protocol */ gfs2_lm_unmount(sdp); |