]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Simplify priority boosting by putting rt_mutex in rcu_node
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jun 2014 20:30:25 +0000 (13:30 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Jun 2014 17:59:40 +0000 (10:59 -0700)
commite17adc3f20bc9a14ca6a9b763402074519872c96
tree655c76667e1b6942105bcd923521b6bd27cd8e3d
parentf16970ebda6a7867f2766e6ed32e46f08660dc50
rcu: Simplify priority boosting by putting rt_mutex in rcu_node

RCU priority boosting currently checks for boosting via a pointer in
task_struct.  However, this is not needed: As Oleg noted, if the
rt_mutex is placed in the rcu_node instead of on the booster's stack,
the boostee can simply check it see if it owns the lock.  This commit
makes this change, shrinking task_struct by one pointer and the kernel
by thirteen lines.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/init_task.h
include/linux/sched.h
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h