rcu: Make rcu_tasks_kthread()'s GP-wait loop allow preemption
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 5 Aug 2014 12:10:24 +0000 (05:10 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:27:31 +0000 (16:27 -0700)
commit8f20a5e83d2c5d0e126a2fc9bca67f7430dac907
tree48333b2fd0773d384e5e907401812645fc9575b2
parent176f8f7a52cc6d09d686f0d900abda6942a52fbb
rcu: Make rcu_tasks_kthread()'s GP-wait loop allow preemption

The grace-period-wait loop in rcu_tasks_kthread() is under (unnecessary)
RCU protection, and therefore has no preemption points in a PREEMPT=n
kernel.  This commit therefore removes the RCU protection and inserts
cond_resched().

Reported-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/update.c