aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2023-08-17 18:36:36 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-05 15:58:16 +0200
commitb6b8f72a11b9d0d7badc7b51030f7fecf695fd79 (patch)
treeec17782965a6174e04b98cd65c92a999cf1dfcfe
parentb74cd55aa9a9d0aca760028a51343ec79812e410 (diff)
downloadlinux-b6b8f72a11b9d0d7badc7b51030f7fecf695fd79.tar.gz
gfs2: Fix logd wakeup on I/O error
When quotad detects an I/O error, it sets sd_log_error and then it wakes up logd to withdraw the filesystem. However, logd doesn't wake up when sd_log_error is set. Fix that. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--fs/gfs2/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index aaca22f2aa2d1..abe4397dc59b7 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -1340,6 +1340,7 @@ int gfs2_logd(void *data)
test_bit(SDF_FORCE_AIL_FLUSH, &sdp->sd_flags) ||
gfs2_ail_flush_reqd(sdp) ||
gfs2_jrnl_flush_reqd(sdp) ||
+ sdp->sd_log_error ||
kthread_should_stop(),
t);
}