* [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited
@ 2026-11-11 15:20 Avinesh Kumar
2026-11-11 17:26 ` Christoph Hellwig
2026-11-14 14:56 ` Zorro Lang
0 siblings, 2 replies; 3+ messages in thread
From: Avinesh Kumar @ 2026-11-11 15:20 UTC (permalink / raw)
To: fstests, zlang; +Cc: djwong
From: Avinesh Kumar <avinesh.kumar@suse.com>
After the unmount, the test resumes the stopped xfs_io healthmon
process, which reads the "filesystem unmounted" event, sees EOF, and
exits on its own. The test then sends it a SIGTERM anyway in case it
did not exit. If xfs_io has already exited and been reaped by the
shell, kill prints "kill: (PID) - No such process" to stderr, which
doesn't match the golden output:
+/opt/xfstests/tests/xfs/654: line 50: kill: (170710) - No such process
mount refcount is in range
mount + healthmon refcount is in range
Redirect kill's output to $seqres.full, as _kill_xfs_healer does.
Fixes: 79f6b1c3 ("xfs: test health monitoring code")
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
tests/xfs/654 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/xfs/654 b/tests/xfs/654
index 012f31a8..e8d815ae 100755
--- a/tests/xfs/654
+++ b/tests/xfs/654
@@ -47,7 +47,7 @@ mon_nomount_refcount="$(_module_refcount xfs)"
# Capture mod refcount after continuing healthmon (which should exit due to the
# unmount) and killing it.
kill -CONT $healer_pid
-kill $healer_pid
+kill $healer_pid &>> $seqres.full
wait
unset healer_pid
nomon_nomount_refcount="$(_module_refcount xfs)"
--
2.56.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited
2026-11-11 15:20 [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited Avinesh Kumar
@ 2026-11-11 17:26 ` Christoph Hellwig
2026-11-14 14:56 ` Zorro Lang
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2026-11-11 17:26 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: fstests, zlang, djwong
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited
2026-11-11 15:20 [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited Avinesh Kumar
2026-11-11 17:26 ` Christoph Hellwig
@ 2026-11-14 14:56 ` Zorro Lang
1 sibling, 0 replies; 3+ messages in thread
From: Zorro Lang @ 2026-11-14 14:56 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: fstests, zlang, djwong
On Wed, Nov 11, 2026 at 04:20:19PM +0100, Avinesh Kumar wrote:
> From: Avinesh Kumar <avinesh.kumar@suse.com>
>
> After the unmount, the test resumes the stopped xfs_io healthmon
> process, which reads the "filesystem unmounted" event, sees EOF, and
> exits on its own. The test then sends it a SIGTERM anyway in case it
> did not exit. If xfs_io has already exited and been reaped by the
> shell, kill prints "kill: (PID) - No such process" to stderr, which
> doesn't match the golden output:
>
> +/opt/xfstests/tests/xfs/654: line 50: kill: (170710) - No such process
> mount refcount is in range
> mount + healthmon refcount is in range
>
> Redirect kill's output to $seqres.full, as _kill_xfs_healer does.
>
> Fixes: 79f6b1c3 ("xfs: test health monitoring code")
> Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
> ---
Reviewed-by: Zorro Lang <zlang@kernel.org>
> tests/xfs/654 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/xfs/654 b/tests/xfs/654
> index 012f31a8..e8d815ae 100755
> --- a/tests/xfs/654
> +++ b/tests/xfs/654
> @@ -47,7 +47,7 @@ mon_nomount_refcount="$(_module_refcount xfs)"
> # Capture mod refcount after continuing healthmon (which should exit due to the
> # unmount) and killing it.
> kill -CONT $healer_pid
> -kill $healer_pid
> +kill $healer_pid &>> $seqres.full
> wait
> unset healer_pid
> nomon_nomount_refcount="$(_module_refcount xfs)"
> --
> 2.56.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-14 14:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 15:20 [PATCH] xfs/654: don't complain if the healthmon xfs_io already exited Avinesh Kumar
2026-11-11 17:26 ` Christoph Hellwig
2026-11-14 14:56 ` Zorro Lang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.