Skip to content

Commit

Permalink
rcu: The rcu_needs_cpu() function is not a quiescent state
Browse files Browse the repository at this point in the history
The TINY_PREEMPT_RCU() function rcu_preempt_needs_cpu(), which is called
from rcu_needs_cpu(), assumes that it is in a quiescent state with respect
to the CPU.  This is no longer the case.  This commit therefore updates
rcu_preempt_needs_cpu() to make it aware that it is not running in a
quiescent state.

Signed-off-by: Paul E. McKenney <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Tested-by: Heiko Carstens <[email protected]>
Tested-by: Pascal Chapperon <[email protected]>
  • Loading branch information
Paul E. McKenney authored and paulmck committed Jul 2, 2012
1 parent bf1304e commit 28f8555
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/rcutiny_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,6 @@ EXPORT_SYMBOL_GPL(synchronize_rcu_expedited);
*/
int rcu_preempt_needs_cpu(void)
{
if (!rcu_preempt_running_reader())
rcu_preempt_cpu_qs();
return rcu_preempt_ctrlblk.rcb.rcucblist != NULL;
}

Expand Down

0 comments on commit 28f8555

Please sign in to comment.