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: wait for withdraw earlier during unmount

During an unmount, wait for potential withdraw to complete before calling
gfs2_make_fs_ro(). This will allow gfs2_make_fs_ro() to skip much of its work.

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

+3 -2
+3 -2
fs/gfs2/super.c
··· 596 596 } 597 597 spin_unlock(&sdp->sd_jindex_spin); 598 598 599 + /* Wait for withdraw to complete */ 600 + flush_work(&sdp->sd_withdraw_work); 601 + 599 602 if (!sb_rdonly(sb)) 600 603 gfs2_make_fs_ro(sdp); 601 604 else { ··· 607 604 608 605 gfs2_quota_cleanup(sdp); 609 606 } 610 - 611 - flush_work(&sdp->sd_withdraw_work); 612 607 613 608 /* At this point, we're through modifying the disk */ 614 609