diff options
-rw-r--r-- | kernel/workqueue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 5dbe22aa3efd..345bec95e708 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -2043,8 +2043,10 @@ __acquires(&pool->lock) | |||
2043 | * kernels, where a requeueing work item waiting for something to | 2043 | * kernels, where a requeueing work item waiting for something to |
2044 | * happen could deadlock with stop_machine as such work item could | 2044 | * happen could deadlock with stop_machine as such work item could |
2045 | * indefinitely requeue itself while all other CPUs are trapped in | 2045 | * indefinitely requeue itself while all other CPUs are trapped in |
2046 | * stop_machine. | 2046 | * stop_machine. At the same time, report a quiescent RCU state so |
2047 | * the same condition doesn't freeze RCU. | ||
2047 | */ | 2048 | */ |
2049 | rcu_note_voluntary_context_switch(current); | ||
2048 | cond_resched(); | 2050 | cond_resched(); |
2049 | 2051 | ||
2050 | spin_lock_irq(&pool->lock); | 2052 | spin_lock_irq(&pool->lock); |