scftorture: Pause testing after memory-allocation failure
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 16 May 2023 13:21:02 +0000 (06:21 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:02:57 +0000 (15:02 -0700)
commit4a71be93876171e2d30e413abd33126d8c526791
treefced6ee363bb39e06f725b3061ca4f3736fb75df
parent013608cd0812bdb21fc26d39ed8fdd2fc76e8b9b
scftorture: Pause testing after memory-allocation failure

The scftorture test can quickly execute a large number of calls to no-wait
smp_call_function(), each of which holds a block of memory until the
corresponding handler is invoked.  Especially when the longwait module
parameter is specified, this can chew up an arbitrarily large amount
of memory.  This commit therefore blocks after each memory-allocation
failure, with the duration a function of longwait.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c