diff options
author | Joe Lawrence <joe.lawrence@stratus.com> | 2014-10-05 13:24:22 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-10-06 08:58:26 -0400 |
commit | 3e28e377204badfc3c4119ff2abda473127ee0ff (patch) | |
tree | 75653d8e0802e2e7c060f5b49277e9cd87fba8e7 | |
parent | 789cbbeca4eb7141cbd748ee93772471101b507b (diff) |
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: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/workqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 345bec95e708..09b685daee3d 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -2046,8 +2046,7 @@ __acquires(&pool->lock) | |||
2046 | * stop_machine. At the same time, report a quiescent RCU state so | 2046 | * stop_machine. At the same time, report a quiescent RCU state so |
2047 | * the same condition doesn't freeze RCU. | 2047 | * the same condition doesn't freeze RCU. |
2048 | */ | 2048 | */ |
2049 | rcu_note_voluntary_context_switch(current); | 2049 | cond_resched_rcu_qs(); |
2050 | cond_resched(); | ||
2051 | 2050 | ||
2052 | spin_lock_irq(&pool->lock); | 2051 | spin_lock_irq(&pool->lock); |
2053 | 2052 | ||