rcu: Limit count of static data to the number of RCU levels
authorAlexander Gordeev <agordeev@redhat.com>
Wed, 3 Jun 2015 06:18:30 +0000 (08:18 +0200)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:45:20 +0000 (14:45 -0700)
commitcb007102398edd06ffc4488bf841c2e10f14d2e7
tree617798e5e989c19032c3219dcddf24256670abdd
parent199977bff9efceec649d74510fa9754e107ce0c5
rcu: Limit count of static data to the number of RCU levels

Although a number of RCU levels may be less than the current
maximum of four, some static data associated with each level
are allocated for all four levels. As result, the extra data
never get accessed and just wast memory. This update limits
count of allocated items to the number of used RCU levels.

Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree.h