workqueue: Eliminate cond_resched_rcu_qs() in favor of cond_resched()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 24 Oct 2017 15:25:02 +0000 (08:25 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 4 Dec 2017 18:28:10 +0000 (10:28 -0800)
Now that cond_resched() also provides RCU quiescent states when
needed, it can be used in place of cond_resched_rcu_qs().  This
commit therefore makes this change.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
kernel/workqueue.c

index 8fdb710bfdd732fc3e6bfaa3110264de70c9af1d..aee7eaab05cb9fb8e9ee7bbb1f083f2f282bdb88 100644 (file)
@@ -2135,7 +2135,7 @@ __acquires(&pool->lock)
         * stop_machine. At the same time, report a quiescent RCU state so
         * the same condition doesn't freeze RCU.
         */
-       cond_resched_rcu_qs();
+       cond_resched();
 
        spin_lock_irq(&pool->lock);