rcu: Stop shrinker loop
authorPeter Enderborg <peter.enderborg@sony.com>
Thu, 4 Jun 2020 10:23:20 +0000 (12:23 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 18:58:51 +0000 (11:58 -0700)
commitc6dfd72b7a3b70a2054db0f73245ea2f762a8452
treede84fe185c47b0945e168f5ee0220699289ed060
parente40bb921119814c6f746891af9cd37eccda616a4
rcu: Stop shrinker loop

The count and scan can be separated in time, and there is a fair chance
that all work is already done when the scan starts, which might in turn
result in a needless retry.  This commit therefore avoids this retry by
returning SHRINK_STOP.

Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Peter Enderborg <peter.enderborg@sony.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c