History

workqueue: add pool ID to the names of unbound kworkers

There are gonna be multiple unbound pools. Include pool ID in the name of unbound kworkers.

Tejun Heo committed 13 years ago

Commit ac6104c1 parent f02ae731 file · +2 −1Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+2−1
@@ -1707,7 +1707,8 @@ static struct worker *create_worker(struct worker_pool *pool) · 1706 unmodified lines
1707 "kworker/%d:%d%s", pool->cpu, id, pri);1707 "kworker/%d:%d%s", pool->cpu, id, pri);
1708 else1708 else
1709 worker->task = kthread_create(worker_thread, worker,1709 worker->task = kthread_create(worker_thread, worker,
1710 "kworker/u:%d%s", id, pri);1710 "kworker/u%d:%d%s",
1711 pool->id, id, pri);
1711 if (IS_ERR(worker->task))1712 if (IS_ERR(worker->task))
1712 goto fail;1713 goto fail;
1713 1714