2024-01-25 19:05:49

by Audra Mitchell

[permalink] [raw]
Subject: [PATCH] workqueue.c: Shorten events_freezable_power_efficient name

Since we have set the WQ_NAME_LEN to 32, decrease the name of
events_freezable_power_efficient so that it does not trip the name length
warning when the workqueue is created.

Signed-off-by: Audra Mitchell <[email protected]>
---
kernel/workqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 76e60faed892..9b5890c51853 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -6691,7 +6691,7 @@ void __init workqueue_init_early(void)
WQ_FREEZABLE, 0);
system_power_efficient_wq = alloc_workqueue("events_power_efficient",
WQ_POWER_EFFICIENT, 0);
- system_freezable_power_efficient_wq = alloc_workqueue("events_freezable_power_efficient",
+ system_freezable_power_efficient_wq = alloc_workqueue("events_freezable_pwr_efficient",
WQ_FREEZABLE | WQ_POWER_EFFICIENT,
0);
BUG_ON(!system_wq || !system_highpri_wq || !system_long_wq ||
--
2.43.0



2024-01-25 19:20:05

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] workqueue.c: Shorten events_freezable_power_efficient name

On Thu, Jan 25, 2024 at 02:05:32PM -0500, Audra Mitchell wrote:
> Since we have set the WQ_NAME_LEN to 32, decrease the name of
> events_freezable_power_efficient so that it does not trip the name length
> warning when the workqueue is created.
>
> Signed-off-by: Audra Mitchell <[email protected]>

Applied to wq/for-6.9.

Thanks.

--
tejun