Revert "rcu: Move PREEMPT_RCU preemption to switch_to() invocation"
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 14:08:42 +0000 (07:08 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 18:39:19 +0000 (11:39 -0700)
commitcba6d0d64ee53772b285d0c0c288deefbeaf7775
treeb2d3de62d15a77d23708c1af6f188c86f0d87fb9
parent6887a4131da3adaab011613776d865f4bcfb5678
Revert "rcu: Move PREEMPT_RCU preemption to switch_to() invocation"

This reverts commit 616c310e83b872024271c915c1b9ab505b9efad9.
(Move PREEMPT_RCU preemption to switch_to() invocation).
Testing by Sasha Levin <levinsasha928@gmail.com> showed that this
can result in deadlock due to invoking the scheduler when one of
the runqueue locks is held.  Because this commit was simply a
performance optimization, revert it.

Reported-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Sasha Levin <levinsasha928@gmail.com>
arch/um/drivers/mconsole_kern.c
include/linux/rcupdate.h
include/linux/rcutiny.h
include/linux/sched.h
kernel/rcutree.c
kernel/rcutree.h
kernel/rcutree_plugin.h
kernel/sched/core.c