Skip to content

Commit 231035f

Browse files
wenchao-haohtejun
authored andcommitted
workqueue: Increase worker desc's length to 32
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>
1 parent 2a1b02b commit 231035f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/workqueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ enum wq_misc_consts {
9595
WORK_BUSY_RUNNING = 1 << 1,
9696

9797
/* maximum string length for set_worker_desc() */
98-
WORKER_DESC_LEN = 24,
98+
WORKER_DESC_LEN = 32,
9999
};
100100

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

0 commit comments

Comments
 (0)