]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
workqueue: Increase worker desc's length to 32
authorWenchao Hao <haowenchao22@gmail.com>
Thu, 6 Jun 2024 08:52:15 +0000 (16:52 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 7 Jun 2024 16:24:16 +0000 (06:24 -1000)
Commit 31c89007285d ("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: 31c89007285d ("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>
include/linux/workqueue.h

index fb399389453657d2a8cb36287c294dbb18ec5b74..d9968bfc8eacc73b3c30e0b9a4449410755217e1 100644 (file)
@@ -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'! */