diff options
author | Wenchao Hao <haowenchao22@gmail.com> | 2024-06-06 16:52:15 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-06-07 06:24:16 -1000 |
commit | 231035f18d6b80e5c28732a20872398116a54ecd (patch) | |
tree | 39da1c9672cf80f147e72ce997e616fd362b49c3 /include | |
parent | 2a1b02bcba78f8498ab00d6142e1238d85b01591 (diff) |
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 <haowenchao22@gmail.com>
CC: Audra Mitchell <audra@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/workqueue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index fb3993894536..d9968bfc8eac 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'! */ |