From: Andreas Gruenbacher Date: Wed, 26 Nov 2025 23:27:14 +0000 (+0000) Subject: gfs2: Fix "gfs2: Switch to wait_event in gfs2_quotad" X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=dff1fb6d8b7abe5b1119fa060f5d6b3370bf10ac;p=linux%2F.git gfs2: Fix "gfs2: Switch to wait_event in gfs2_quotad" Commit e4a8b5481c59a ("gfs2: Switch to wait_event in gfs2_quotad") broke cyclic statfs syncing, so the numbers reported by "df" could easily get completely out of sync with reality. Fix this by reverting part of commit e4a8b5481c59a for now. A follow-up commit will clean this code up later. Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 2298e06797ac..f2df01f801b8 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1616,7 +1616,7 @@ int gfs2_quotad(void *data) t = min(quotad_timeo, statfs_timeo); - t = wait_event_freezable_timeout(sdp->sd_quota_wait, + t -= wait_event_freezable_timeout(sdp->sd_quota_wait, sdp->sd_statfs_force_sync || gfs2_withdrawing_or_withdrawn(sdp) || kthread_should_stop(),