rcutorture: Hoist OOM registry up one level
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 22 Jul 2020 17:45:12 +0000 (10:45 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:45:35 +0000 (18:45 -0700)
commit299c7d94f635ab93ffb0468aec6b6e2176ec5cbf
tree42eb2c66efb76ccfe4d066d41b8c779eea9f4782
parent58db5785b0d76be4582a32a7900acce88e691d36
rcutorture: Hoist OOM registry up one level

Currently, registering and unregistering the OOM notifier is done
right before and after the test, respectively.  This will not work
well for multi-threaded tests, so this commit hoists this registering
and unregistering up into the rcu_torture_fwd_prog_init() and
rcu_torture_fwd_prog_cleanup() functions.

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