mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] workqueue: Remove redundant call for pwq_adjust_max_active
@ 2013-12-09  3:30 Libin
  0 siblings, 0 replies; only message in thread
From: Libin @ 2013-12-09  3:30 UTC (permalink / raw)
  To: Tejun Heo; +Cc: guohanjun, wangyijing, linux-kernel

From: Li Bin <huawei.libin@huawei.com>

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.

Signed-off-by: Li Bin <huawei.libin@huawei.com>
---
 kernel/workqueue.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index c66912be..31cbe1d 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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);
-- 
1.8.2.2



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-09  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-09  3:30 [PATCH] workqueue: Remove redundant call for pwq_adjust_max_active Libin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®