mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
This commit is contained in:
parent
f02ae73aaa
commit
ac6104cdf8
1 changed files with 2 additions and 1 deletions
|
@ -1707,7 +1707,8 @@ static struct worker *create_worker(struct worker_pool *pool)
|
||||||
"kworker/%d:%d%s", pool->cpu, id, pri);
|
"kworker/%d:%d%s", pool->cpu, id, pri);
|
||||||
else
|
else
|
||||||
worker->task = kthread_create(worker_thread, worker,
|
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))
|
if (IS_ERR(worker->task))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue