diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index d803036059e9..a0e7f44eb121 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3040,7 +3040,7 @@ kfree_rcu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) break; } - return freed; + return freed == 0 ? SHRINK_STOP : freed; } static struct shrinker kfree_rcu_shrinker = {