]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcutorture: Prevent concurrent kvm.sh runs on same source tree
authorJoel Fernandes <joelagnelf@nvidia.com>
Thu, 1 Jan 2026 16:34:16 +0000 (11:34 -0500)
committerBoqun Feng <boqun.feng@gmail.com>
Sun, 4 Jan 2026 10:50:59 +0000 (18:50 +0800)
commita590a79d19046d3e0f2089f83046f3b87f880359
tree5f3134748d67b5d6cd793fed9a579bf30dc921ba
parentc89474b9b2ab8ab2c0d2cddadbed781c0f5e8f0c
rcutorture: Prevent concurrent kvm.sh runs on same source tree

Add flock-based locking to kvm.sh to prevent multiple instances from
running concurrently on the same source tree. This prevents build
failures caused by one instance's "make clean" deleting generated files
while another instance is building causing build failures.

The lock file is placed in the rcutorture directory and added to
.gitignore.

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/.gitignore
tools/testing/selftests/rcutorture/bin/kvm.sh