The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] workqueue: Fix rescuer task's name truncated
@ 2024-05-13 14:01 Wenchao Hao
  2024-05-13 14:01 ` [PATCH v2 1/2] " Wenchao Hao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wenchao Hao @ 2024-05-13 14:01 UTC (permalink / raw)
  To: Tejun Heo, Lai Jiangshan, Aaron Tomlin, linux-kernel
  Cc: Wenchao Hao, Wenchao Hao

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-27  1:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 14:01 [PATCH v2 0/2] workqueue: Fix rescuer task's name truncated Wenchao Hao
2024-05-13 14:01 ` [PATCH v2 1/2] " Wenchao Hao
2024-05-13 14:01 ` [PATCH v2 2/2] workqueue: Increase worker desc's length to 32 Wenchao Hao
2024-05-23  1:36 ` [PATCH v2 0/2] workqueue: Fix rescuer task's name truncated Wenchao Hao
2024-05-26 18:50   ` Tejun Heo
2024-05-27  1:59     ` Wenchao Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox