diff options
| author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-06-03 15:32:41 +0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-12-05 18:05:41 +0100 |
| commit | fb749f3b43c0f66fd03f35a895b3547e3cca9d62 (patch) | |
| tree | 499aa15e78d6f9bc194b8cda610850cb7a98ecf8 | |
| parent | 123db510ca2fa60b65a68616f58d792413ec25fb (diff) | |
workqueue: remove useless WARN_ON_ONCE()
The @cpu is fetched via smp_processor_id() in this function,
so the check is useless.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
| -rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 118431095..5708b5296 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -4693,8 +4693,6 @@ static void wq_unbind_fn(struct work_struct *work) int wi; for_each_cpu_worker_pool(pool, cpu) { - WARN_ON_ONCE(cpu != smp_processor_id()); - mutex_lock(&pool->manager_mutex); spin_lock_irq(&pool->lock); |
