mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
gfs2: Make sure we don't miss any delayed withdraws
Commitca399c96e9changes gfs2_log_flush to not withdraw the filesystem while holding the log flush lock, but it fails to check if the filesystem needs to be withdrawn once the log flush lock has been released. Likewise, commitf05b86db31depends on gfs2_log_flush to trigger for delayed withdraws. Add that and clean up the code flow somewhat. In gfs2_put_super, add a check for delayed withdraws that have been missed to prevent these kinds of bugs in the future. Fixes:ca399c96e9("gfs2: flesh out delayed withdraw for gfs2_log_flush") Fixes:f05b86db31("gfs2: Prepare to withdraw as soon as an IO error occurs in log write") Cc: stable@vger.kernel.org # v5.7+:462582b99b: gfs2: add some much needed cleanup for log flushes that fail Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
bbf5c97901
commit
5a61ae1402
3 changed files with 43 additions and 30 deletions
Loading…
Add table
Add a link
Reference in a new issue