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

Commit 3e28e377 authored by Joe Lawrence's avatar Joe Lawrence Committed by Paul E. McKenney
Browse files

workqueue: Use cond_resched_rcu_qs macro



Tidy up and use cond_resched_rcu_qs when calling cond_resched and
reporting potential quiescent state to RCU.  Splitting this change in
this way allows easy backporting to -stable for kernel versions not
having cond_resched_rcu_qs().

Signed-off-by: default avatarJoe Lawrence <joe.lawrence@stratus.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 789cbbec
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2046,8 +2046,7 @@ __acquires(&pool->lock)
	 * stop_machine. At the same time, report a quiescent RCU state so
	 * the same condition doesn't freeze RCU.
	 */
	rcu_note_voluntary_context_switch(current);
	cond_resched();
	cond_resched_rcu_qs();

	spin_lock_irq(&pool->lock);