From: Wenchao Hao Date: Thu, 6 Jun 2024 08:52:15 +0000 (+0800) Subject: workqueue: Increase worker desc's length to 32 X-Git-Tag: v6.10-rc6~38^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=231035f18d6b80e5c28732a20872398116a54ecd;p=thirdparty%2Flinux.git workqueue: Increase worker desc's length to 32 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 CC: Audra Mitchell Signed-off-by: Tejun Heo --- diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index fb39938945365..d9968bfc8eacc 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h @@ -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'! */