rcutorture: Move mem_dump_obj() tests into separate function
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 3 May 2021 02:56:05 +0000 (19:56 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:05:07 +0000 (16:05 -0700)
commit7ab2bd31df871408792eac871c4187e29d039315
tree7b3fa5246ee081b6c235a86b1c933b7e2edbe2ef
parent3d78668e5b50f1a28fdfd4293fc61b90eb10ba75
rcutorture: Move mem_dump_obj() tests into separate function

To make the purpose of the code more apparent, this commit moves the
tests of mem_dump_obj() to a new rcu_torture_mem_dump_obj() function
and calls it from rcu_torture_cleanup().

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