Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gfs2: drain ail under sd_log_flush_lock

When a withdraw is carried out, call gfs2_ail_drain() under the
sdp->sd_log_flush_lock. This isn't strictly necessary but should be easier to
read, and more robust against possible future bugs.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>

+1 -2
+1 -2
fs/gfs2/util.c
··· 123 123 return; 124 124 } 125 125 clear_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags); 126 - up_write(&sdp->sd_log_flush_lock); 127 - 128 126 gfs2_ail_drain(sdp); /* frees all transactions */ 127 + up_write(&sdp->sd_log_flush_lock); 129 128 130 129 wake_up(&sdp->sd_logd_waitq); 131 130 wake_up(&sdp->sd_quota_wait);