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>
This commit is contained in:
Joel Fernandes 2026-01-01 11:34:16 -05:00 • committed by Boqun Feng
commit a590a79d19
2 changed files with 18 additions and 0 deletions