Skip to content

Commit 00397e7

Browse files
committed
Merge tag 'linux-kselftest-fixes-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fix from Shuah Khan: "A fix to memory-hotplug hot-remove test to stop spamming logs with dump_page() entries and slowing the system down to a crawl" * tag 'linux-kselftest-fixes-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: memory-hotplug: avoid spamming logs with dump_page(), ratio limit hot-remove error test
2 parents 3fdacf4 + 0c0f629 commit 00397e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/memory-hotplug/mem-on-off-test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ done
282282
#
283283
echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error
284284
for memory in `hotpluggable_online_memory`; do
285-
offline_memory_expect_fail $memory
285+
if [ $((RANDOM % 100)) -lt $ratio ]; then
286+
offline_memory_expect_fail $memory
287+
fi
286288
done
287289

288290
echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error

0 commit comments

Comments
 (0)