aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoqun Feng <[email protected]>2023-03-12 12:04:48 -0700
committerBoqun Feng <[email protected]>2023-03-27 11:16:01 -0700
commit60a1a64ec0c08e02f2cd4372cd3971e9d5eb2b37 (patch)
tree476f2c0b2a54ca7b9dad3a6a4d3e4542240618f5
parentf0f44752f5f61ee4e3bd88ae033fdb888320aafe (diff)
locking: Reduce the number of locks in ww_mutex stress tests
The stress test in test_ww_mutex_init() uses 4095 locks since lockdep::reference has 12 bits, and since we are going to reduce it to 11 bits to support lock_sync(), and 2047 is still a reasonable number of the max nesting level for locks, so adjust the test. Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-lkp/[email protected] Tested-by: Paul E. McKenney <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Boqun Feng <[email protected]>
-rw-r--r--kernel/locking/test-ww_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/locking/test-ww_mutex.c b/kernel/locking/test-ww_mutex.c
index 29dc253d03af..93cca6e69860 100644
--- a/kernel/locking/test-ww_mutex.c
+++ b/kernel/locking/test-ww_mutex.c
@@ -659,7 +659,7 @@ static int __init test_ww_mutex_init(void)
if (ret)
return ret;
- ret = stress(4095, hweight32(STRESS_ALL)*ncpus, STRESS_ALL);
+ ret = stress(2047, hweight32(STRESS_ALL)*ncpus, STRESS_ALL);
if (ret)
return ret;