[Cluster-devel] [PATCH 3/4] gfs2: Fix logd wakeup on I/O error

Andreas Gruenbacher agruenba at redhat.com
Thu Aug 24 21:11:00 UTC 2023


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 at redhat.com>
---
 fs/gfs2/log.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index aaca22f2aa2d..abe4397dc59b 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);
 	}
-- 
2.40.1



More information about the Cluster-devel mailing list