Skip to content

Commit

Permalink
workqueue: add pool ID to the names of unbound kworkers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tejun Heo committed Mar 12, 2013
1 parent f02ae73 commit ac6104c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ac6104c

Please sign in to comment.