Skip to content

Commit

Permalink
workqueue: Increase worker desc's length to 32
Browse files Browse the repository at this point in the history
Commit 31c8900 ("workqueue.c: Increase workqueue name length")
increased WQ_NAME_LEN from 24 to 32, but forget to increase
WORKER_DESC_LEN, which would cause truncation when setting kworker's
desc from workqueue_struct's name, process_one_work() for example.

Fixes: 31c8900 ("workqueue.c: Increase workqueue name length")

Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
CC: Audra Mitchell <audra@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
haowenchao authored and htejun committed Jun 7, 2024
1 parent 2a1b02b commit 231035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ enum wq_misc_consts {
WORK_BUSY_RUNNING = 1 << 1,

/* maximum string length for set_worker_desc() */
WORKER_DESC_LEN = 24,
WORKER_DESC_LEN = 32,
};

/* Convenience constants - of type 'unsigned long', not 'enum'! */
Expand Down

0 comments on commit 231035f

Please sign in to comment.