[PATCH 0/4] test-ww_mutex: Miscellaneous fixes
From: Håkon Bugge
Date: Wed Jun 17 2026 - 08:14:34 EST
This series fixes:
- module cleanup
- error propagation from stress workers
- transient -EDEADLK handling in test_cycle_work()
- timeout-related false negatives in stress_inorder_work()
The series is based on v7.1 and has been tested on a 96-CPU x86_64
bare-metal system and a 160-CPU arm64 bare-metal system. Both systems
completed 100 iterations of
tools/testing/selftests/locking/ww_mutex.sh successfully.
It is worth mentioning that the last patch retries up to 10,000 lock
acquisitions after timeout. This value was determined empirically: 10
and 100 retries were insufficient on the test systems, while 10,000
provided stable results and avoided false negatives.
Håkon Bugge (4):
test-ww_mutex: Fix module cleanup
test-ww_mutex: Report errors from stress workers
test-ww_mutex: Handle transient -EDEADLK in test_cycle_work
test-ww_mutex: Retry lock acquisition after timeout if deadlocked
kernel/locking/test-ww_mutex.c | 55 +++++++++++++++++++++++++---------
1 file changed, 41 insertions(+), 14 deletions(-)
--
2.43.5