rcu: Shrink each possible cpu krcp
authorZqiang <qiang.zhang@windriver.com>
Fri, 14 Aug 2020 06:45:57 +0000 (14:45 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 3 Sep 2020 16:40:13 +0000 (09:40 -0700)
commit70060b8770d34f83e9fa4c3526db013dd2773611
tree91dddf9637d610cd5af984737440cf914d989721
parent53922270d21de707a1a0ffaf1e07644e77fcb8db
rcu: Shrink each possible cpu krcp

CPUs can go offline shortly after kfree_call_rcu() has been invoked,
which can leave memory stranded until those CPUs come back online.
This commit therefore drains the kcrp of each CPU, not just the
ones that happen to be online.

Acked-by: Joel Fernandes <joel@joelfernandes.org>
Signed-off-by: Zqiang <qiang.zhang@windriver.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c