Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a76a9a48 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Fix backwards RCU_LOCKDEP_WARN() in synchronize_rcu_tasks()



The RCU_LOCKDEP_WARN() in synchronize_rcu_tasks() triggers if the
scheduler is active, which is backwards.  This commit therefore
negates the test.

Reported-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent f78f5b90
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -589,7 +589,7 @@ EXPORT_SYMBOL_GPL(call_rcu_tasks);
void synchronize_rcu_tasks(void)
void synchronize_rcu_tasks(void)
{
{
	/* Complain if the scheduler has not started.  */
	/* Complain if the scheduler has not started.  */
	RCU_LOCKDEP_WARN(rcu_scheduler_active,
	RCU_LOCKDEP_WARN(!rcu_scheduler_active,
			 "synchronize_rcu_tasks called too soon");
			 "synchronize_rcu_tasks called too soon");


	/* Wait for the grace period. */
	/* Wait for the grace period. */