diff options
| author | Andreas Gruenbacher <agruenba@redhat.com> | 2025-11-27 02:27:14 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-08 12:13:58 +0300 |
| commit | ab24e7802dcf43d47f5baf58199954fc92b70f0e (patch) | |
| tree | d2b431d2870f8a259e8aad23cc29e6bd511c9c69 | |
| parent | 122fdb8d3d86c4ccda38538eee7bf23d69d9d067 (diff) | |
| download | linux-ab24e7802dcf43d47f5baf58199954fc92b70f0e.tar.xz | |
gfs2: Fix "gfs2: Switch to wait_event in gfs2_quotad"
[ Upstream commit dff1fb6d8b7abe5b1119fa060f5d6b3370bf10ac ]
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 <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | fs/gfs2/quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 2e6bc77f4f81..642584265a6f 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c @@ -1617,7 +1617,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(), |
