Commit 231035f1 authored by Wenchao Hao's avatar Wenchao Hao Committed by Tejun Heo

workqueue: Increase worker desc's length to 32

Commit 31c89007 ("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: 31c89007 ("workqueue.c: Increase workqueue name length")
Signed-off-by: default avatarWenchao Hao <haowenchao22@gmail.com>
CC: Audra Mitchell <audra@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 2a1b02bc
...@@ -95,7 +95,7 @@ enum wq_misc_consts { ...@@ -95,7 +95,7 @@ enum wq_misc_consts {
WORK_BUSY_RUNNING = 1 << 1, WORK_BUSY_RUNNING = 1 << 1,
/* maximum string length for set_worker_desc() */ /* maximum string length for set_worker_desc() */
WORKER_DESC_LEN = 24, WORKER_DESC_LEN = 32,
}; };
/* Convenience constants - of type 'unsigned long', not 'enum'! */ /* Convenience constants - of type 'unsigned long', not 'enum'! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment