workqueue: remove useless WARN_ON_ONCE()
PATCH 1/1 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 <[email protected]>
--- kernel/workqueue.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
kernel/workqueue.c +0 -2
@@ -4461,8 +4461,6 @@ static void wq_unbind_fn(struct work_struct *work)struct worker *worker;for_each_cpu_worker_pool (pool, cpu) { -WARN_ON_ONCE (cpu !=smp_processor_id ()); -mutex_lock (&pool->attach_mutex);spin_lock_irq (&pool->lock);
Signature · 1 line
1.7.4.4
Quoted 4 lines · Lai Jiangshan
The @cpu is fetched via
smp_processor_id()in this function, so the check is useless.Signed-off-by Lai Jiangshan <[email protected]>
Applied to wq/for-3.17.
Thanks.
Signature · 1 line
tejun