]> git.ipfire.org Git - thirdparty/linux.git/commit
rcutorture: Add --kill-previous option to terminate previous kvm.sh runs
authorJoel Fernandes <joelagnelf@nvidia.com>
Thu, 1 Jan 2026 16:34:17 +0000 (11:34 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Sun, 4 Jan 2026 10:51:14 +0000 (18:51 +0800)
commitcf587c6ff2d09866eb53a4620bc1aa561fb0c000
tree20fb0686319f195ad5c6be9af3b557e9d2fce657
parenta590a79d19046d3e0f2089f83046f3b87f880359
rcutorture: Add --kill-previous option to terminate previous kvm.sh runs

When kvm.sh is killed, its child processes (make, gcc, qemu, etc.) may
continue running. This prevents new kvm.sh instances from starting even
though the parent is gone.

Add a --kill-previous option that uses fuser(1) to terminate all
processes holding the flock file before attempting to acquire it. This
provides a clean way to recover from stale/zombie kvm.sh runs which
sometimes may have lots of qemu and compiler processes still disturbing.

Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Tested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
tools/testing/selftests/rcutorture/bin/kvm.sh