Skip to content

Commit dff1fb6

Browse files
author
Andreas Gruenbacher
committed
gfs2: Fix "gfs2: Switch to wait_event in gfs2_quotad"
Commit e4a8b54 ("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 e4a8b54 for now. A follow-up commit will clean this code up later. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 5b35158 commit dff1fb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/quota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ int gfs2_quotad(void *data)
16161616

16171617
t = min(quotad_timeo, statfs_timeo);
16181618

1619-
t = wait_event_freezable_timeout(sdp->sd_quota_wait,
1619+
t -= wait_event_freezable_timeout(sdp->sd_quota_wait,
16201620
sdp->sd_statfs_force_sync ||
16211621
gfs2_withdrawing_or_withdrawn(sdp) ||
16221622
kthread_should_stop(),

0 commit comments

Comments
 (0)