include/linux/workqueue.h | 2 +- kernel/workqueue.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-)
Task comm of task is limitted to 16, prefix "kworker/R-" is added for rescuer worker's task, which cause most task name is truncated as following: root 81 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xprti] root 82 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-cfg80] root 85 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-nfsio] root 86 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xfsal] root 87 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xfs_m] root 88 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-acpi_] root 93 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-iscsi] root 95 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] root 97 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] root 99 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] I want to fix this issue by split rescuer name to 2 part like other kworker, the normal part is "kworker/R" which is set to task_struct's comm, another part is wq->name which is added to kworker's desc. These 2 parts would be merged in wq_worker_comm(). The first patch fix the rescuer task's name truncated; The second patch fix workqueue_struct's name truncated. V2: Add another patch to increased worker desc's length to 32 to fix compile warning reported: https://lore.kernel.org/oe-kbuild-all/202405131400.sEYZHYk2-lkp@intel.com/ Wenchao Hao (2): workqueue: Fix rescuer task's name truncated workqueue: Increase worker desc's length to 32 include/linux/workqueue.h | 2 +- kernel/workqueue.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) -- 2.32.0
On 2024/5/13 22:01, Wenchao Hao wrote: > Task comm of task is limitted to 16, prefix "kworker/R-" is added for > rescuer worker's task, which cause most task name is truncated as > following: > > root 81 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xprti] > root 82 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-cfg80] > root 85 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-nfsio] > root 86 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xfsal] > root 87 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-xfs_m] > root 88 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-acpi_] > root 93 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-iscsi] > root 95 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] > root 97 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] > root 99 0.0 0.0 0 0 ? I< 11:18 0:00 [kworker/R-scsi_] > > I want to fix this issue by split rescuer name to 2 part like other > kworker, the normal part is "kworker/R" which is set to task_struct's comm, > another part is wq->name which is added to kworker's desc. These 2 parts > would be merged in wq_worker_comm(). > > The first patch fix the rescuer task's name truncated; > The second patch fix workqueue_struct's name truncated. > Friendly ping... > V2: > Add another patch to increased worker desc's length to 32 to fix compile > warning reported: > https://lore.kernel.org/oe-kbuild-all/202405131400.sEYZHYk2-lkp@intel.com/ > > Wenchao Hao (2): > workqueue: Fix rescuer task's name truncated > workqueue: Increase worker desc's length to 32 > > include/linux/workqueue.h | 2 +- > kernel/workqueue.c | 6 +++++- > 2 files changed, 6 insertions(+), 2 deletions(-) >
Hello, On Thu, May 23, 2024 at 09:36:57AM +0800, Wenchao Hao wrote: > > The first patch fix the rescuer task's name truncated; > > The second patch fix workqueue_struct's name truncated. I missed these and the issue got reported separately and a different fix has been applied: https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git/commit/?h=for-6.10-fixes&id=2a1b02bcba78f8498ab00d6142e1238d85b01591 My apologies for missing your patches. Can you please see whether the above patch addresses the issues you saw. Thanks. -- tejun
On 2024/5/27 2:50, Tejun Heo wrote: > Hello, > > On Thu, May 23, 2024 at 09:36:57AM +0800, Wenchao Hao wrote: >>> The first patch fix the rescuer task's name truncated; >>> The second patch fix workqueue_struct's name truncated. > > I missed these and the issue got reported separately and a different fix has > been applied: > > https://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git/commit/?h=for-6.10-fixes&id=2a1b02bcba78f8498ab00d6142e1238d85b01591 > I applied these changes and the issue has been fixed. > My apologies for missing your patches. Can you please see whether the above > patch addresses the issues you saw. > > Thanks. >
© 2016 - 2026 Red Hat, Inc.