Skip to contentSkip to conversation

workqueue: Remove redundant call for pwq_adjust_max_active

PATCH New Libin 1 participant 1 message Dec 9, 2013 Workqueue

lore
Share & tools
lore

Libin

author
#0 lore raw

PATCH 1/1 workqueue: Remove redundant call for pwq_adjust_max_active

From: Li Bin <[email protected]>

In __alloc_workqueue_key(), alloc_and_link_pwqs() already called pwq_adjust_max_active() to update the pwq's max_active, but after that there is a redundant call for pwq_adjust_max_active. It is meanless, remove it.

---
 kernel/workqueue.c | 5 -----
 1 file changed, 5 deletions(-)
kernel/workqueue.c +0 -5
index c66912be..31cbe1d 100644
@@ -4247,11 +4247,6 @@ struct workqueue_struct *__alloc_workqueue_key(const char *fmt,
 	 */
 	mutex_lock(&wq_pool_mutex);
 
-	mutex_lock(&wq->mutex);
-	for_each_pwq(pwq, wq)
-		pwq_adjust_max_active(pwq);
-	mutex_unlock(&wq->mutex);
-
 	list_add(&wq->list, &workqueues);
 
 	mutex_unlock(&wq_pool_mutex);
Signature · 1 line
1.8.2.2