summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorAaron Tomlin <atomlin@atomlin.com>2023-08-08 14:03:29 +0200
committerTejun Heo <tj@kernel.org>2023-08-15 02:20:26 +0200
commitb6a46f7263bd8ba0e545d79bd034c412f32b5875 (patch)
treeb637ee328c98597d8564de2f055441b6d61326bf /kernel/workqueue.c
parentworkqueue: Make default affinity_scope dynamically updatable (diff)
downloadlinux-b6a46f7263bd8ba0e545d79bd034c412f32b5875.tar.xz
linux-b6a46f7263bd8ba0e545d79bd034c412f32b5875.zip
workqueue: Rename rescuer kworker
Each CPU-specific and unbound kworker kthread conforms to a particular naming scheme. However, this does not extend to the rescuer kworker. At present, a rescuer kworker is simply named according to its workqueue's name. This can be cryptic. This patch modifies a rescuer to follow the kworker naming scheme. The "R" is indicative of a rescuer and after "-" is its workqueue's name e.g. "kworker/R-ext4-rsv-conver". tj: Use "R" instead of "r" as the prefix to make it more distinctive and consistent with how highpri pools are marked. Signed-off-by: Aaron Tomlin <atomlin@atomlin.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 789e11e72a4a..d4364d3d8aaa 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -4642,7 +4642,7 @@ static int init_rescuer(struct workqueue_struct *wq)
}
rescuer->rescue_wq = wq;
- rescuer->task = kthread_create(rescuer_thread, rescuer, "%s", wq->name);
+ rescuer->task = kthread_create(rescuer_thread, rescuer, "kworker/R-%s", wq->name);
if (IS_ERR(rescuer->task)) {
ret = PTR_ERR(rescuer->task);
pr_err("workqueue: Failed to create a rescuer kthread for wq \"%s\": %pe",