From 64327d28c76555251c8840d8fc366a5e2d1d9f9e Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Wed, 15 Apr 2026 12:14:51 -0700 Subject: [PATCH] Break retry_forever loop on normal unmount retry_forever() only checked scoutfs_forcing_unmount(), so a normal unmount with a network error in the commit path would loop forever. Also check scoutfs_unmounting() so the write worker can exit cleanly. Signed-off-by: Auke Kok --- kmod/src/trans.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmod/src/trans.c b/kmod/src/trans.c index d131bfa1..d4ff3645 100644 --- a/kmod/src/trans.c +++ b/kmod/src/trans.c @@ -195,7 +195,8 @@ static int retry_forever(struct super_block *sb, int (*func)(struct super_block retrying = true; } - if (scoutfs_forcing_unmount(sb)) { + if (scoutfs_forcing_unmount(sb) || + scoutfs_unmounting(sb)) { ret = -ENOLINK; break; }