gfs2: Lift withdraw check out of gfs2_ail1_empty
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 20 Dec 2023 17:09:22 +0000 (18:09 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 20 Dec 2023 20:29:41 +0000 (21:29 +0100)
commite0f1f021782d6a2e719a451218554a8198c77120
treed6b41feda58c32cbc706fb123a9bf8d58ccd5e8d
parent4d927b03a68846e4e791ccde6b4c274df02f11e9
gfs2: Lift withdraw check out of gfs2_ail1_empty

Lift the check for the SDF_WITHDRAWING flag out of gfs2_ail1_empty() and
into its callers.  This is needed so that gfs2_flush_revokes() can drop
the sd_log_lock spinlock before triggering a withdraw if necessary.

Instead of checking for the SDF_WITHDRAWING flag, use
gfs2_withdrawing().  Also, the low-level code triggering the delayed
withdraw reports when there is a problem, so there is no need to report
that again.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c