workqueue: add pool ID to the names of unbound kworkers
authorTejun Heo <tj@kernel.org>
Tue, 12 Mar 2013 18:30:03 +0000 (11:30 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 12 Mar 2013 18:30:03 +0000 (11:30 -0700)
There are gonna be multiple unbound pools.  Include pool ID in the
name of unbound kworkers.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
kernel/workqueue.c

index 2c5073214774a4a690a3f89202c3f82939166dbd..a8b86f7b6e34c8b9836f7cbb308e42d7bff25269 100644 (file)
@@ -1707,7 +1707,8 @@ static struct worker *create_worker(struct worker_pool *pool)
                                        "kworker/%d:%d%s", pool->cpu, id, pri);
        else
                worker->task = kthread_create(worker_thread, worker,
-                                             "kworker/u:%d%s", id, pri);
+                                             "kworker/u%d:%d%s",
+                                             pool->id, id, pri);
        if (IS_ERR(worker->task))
                goto fail;