summaryrefslogtreecommitdiff
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-03-14 12:40:29 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2011-03-14 12:40:29 +0000
commitc618e87a5fd02aaad006c12d5a80a231dfa39250 (patch)
tree3f8f1f39fb6dedf3cb72fbd71377cc0eecafc7ce /fs/gfs2/meta_io.c
parentd6a079e82efd5fcbb1c7295f22e123c2cc748018 (diff)
downloadkernel-common-c618e87a5fd02aaad006c12d5a80a231dfa39250.tar.gz
kernel-common-c618e87a5fd02aaad006c12d5a80a231dfa39250.tar.bz2
kernel-common-c618e87a5fd02aaad006c12d5a80a231dfa39250.zip
GFS2: Update to AIL list locking
The previous patch missed a couple of places where the AIL list needed locking, so this fixes up those places, plus a comment is corrected too. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 939739c7b3f9..01d97f486553 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -326,6 +326,7 @@ void gfs2_remove_from_journal(struct buffer_head *bh, struct gfs2_trans *tr, int
brelse(bh);
}
if (bd) {
+ spin_lock(&sdp->sd_ail_lock);
if (bd->bd_ail) {
gfs2_remove_from_ail(bd);
bh->b_private = NULL;
@@ -333,6 +334,7 @@ void gfs2_remove_from_journal(struct buffer_head *bh, struct gfs2_trans *tr, int
bd->bd_blkno = bh->b_blocknr;
gfs2_trans_add_revoke(sdp, bd);
}
+ spin_unlock(&sdp->sd_ail_lock);
}
clear_buffer_dirty(bh);
clear_buffer_uptodate(bh);