diff options
author | Yury Norov <[email protected]> | 2018-05-11 16:01:39 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-05-11 17:28:45 -0700 |
commit | 4ba281d5bd9907355e6b79fb72049c9ed50cc670 (patch) | |
tree | 6a73a06297cbc2ddb52d7ab06085549964676e45 /lib/memory-notifier-error-inject.c | |
parent | c9cf87ea6a4725bc586cc5776c3fb6042a264b7d (diff) |
lib/find_bit_benchmark.c: avoid soft lockup in test_find_first_bit()
test_find_first_bit() is intentionally sub-optimal, and may cause soft
lockup due to long time of run on some systems. So decrease length of
bitmap to traverse to avoid lockup.
With the change below, time of test execution doesn't exceed 0.2 seconds
on my testing system.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 4441fca0a27f5 ("lib: test module for find_*_bit() functions")
Signed-off-by: Yury Norov <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions