]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
test-ww_mutex: Extend ww_mutex tests to test both classes of ww_mutexes
authorJohn Stultz <jstultz@google.com>
Fri, 5 Dec 2025 01:35:09 +0000 (01:35 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 18 Dec 2025 09:45:23 +0000 (10:45 +0100)
commit34d80c93a5bbf38938e8c215ec6c938807edeaf0
tree5778ab9119b4ebd98a36639907e7873f1d6ebd47
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
test-ww_mutex: Extend ww_mutex tests to test both classes of ww_mutexes

Currently the test-ww_mutex tool only utilizes the wait-die
class of ww_mutexes, and thus isn't very helpful in exercising
the wait-wound class of ww_mutexes.

So extend the test to exercise both classes of ww_mutexes for
all of the subtests.

Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251205013515.759030-2-jstultz@google.com
kernel/locking/test-ww_mutex.c