Skip to contentSkip to conversation

workqueue: remove useless WARN_ON_ONCE()

PATCH Applied Lai Jiangshan 2 participants 2 messages Jun 3, 2014 – Jun 19, 2014 Workqueue

lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/workqueue.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
kernel/workqueue.c +0 -2
index 6b6e9f2..7dc6e66 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 4 lines · Lai Jiangshan

The @cpu is fetched via smp_processor_id() in this function, so the check is useless.

Applied to wq/for-3.17.

Thanks.

Signature · 1 line
tejun