* [PATCH 0/3] HID: Replace deprecated create_singlethread_workqueue
@ 2026-10-28 11:18 George Karagounis
2026-10-28 11:18 ` [PATCH 1/3] HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueue George Karagounis
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: George Karagounis @ 2026-10-28 11:18 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires
Cc: Filipe Laíns, Bastien Nocera, linux-input, linux-kernel, mail
Hi maintainers,
This patch series replaces the deprecated create_singlethread_workqueue()
with the more efficient alloc_ordered_workqueue() in three HID drivers.
WQ_MEM_RECLAIM is added to ensure the workqueues can process hardware
events under memory pressure.
All three patches have been compile-tested with W=1 and produce no warnings.
Best regards,
George
George Karagounis (3):
HID: haptic: Replace create_singlethread_workqueue with
alloc_ordered_workqueue
HID: elo: Replace create_singlethread_workqueue with
alloc_ordered_workqueue
HID: logitech-hidpp: Replace create_singlethread_workqueue with
alloc_ordered_workqueue
drivers/hid/hid-elo.c | 2 +-
drivers/hid/hid-haptic.c | 2 +-
drivers/hid/hid-logitech-hidpp.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--
2.56.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueue
2026-10-28 11:18 [PATCH 0/3] HID: Replace deprecated create_singlethread_workqueue George Karagounis
@ 2026-10-28 11:18 ` George Karagounis
2026-10-28 11:18 ` [PATCH 2/3] HID: elo: " George Karagounis
2026-10-28 11:18 ` [PATCH 3/3] HID: logitech-hidpp: " George Karagounis
2 siblings, 0 replies; 4+ messages in thread
From: George Karagounis @ 2026-10-28 11:18 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires
Cc: Filipe Laíns, Bastien Nocera, linux-input, linux-kernel, mail
create_singlethread_workqueue() is deprecated. Replace it with
alloc_ordered_workqueue() for the haptic workqueue. WQ_MEM_RECLAIM
is added to ensure hardware events can be processed under memory
pressure.
Signed-off-by: George Karagounis <mail@taterr.org>
---
drivers/hid/hid-haptic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-haptic.c b/drivers/hid/hid-haptic.c
index 8760eeb08b2c..2f4fcb56aba1 100644
--- a/drivers/hid/hid-haptic.c
+++ b/drivers/hid/hid-haptic.c
@@ -460,7 +460,7 @@ int hid_haptic_init(struct hid_device *hdev,
name = kmalloc(strlen(prefix) + strlen(hdev->name) + 2, GFP_KERNEL);
if (name) {
sprintf(name, "%s %s", prefix, hdev->name);
- haptic->wq = create_singlethread_workqueue(name);
+ haptic->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
kfree(name);
}
if (!haptic->wq) {
--
2.56.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/3] HID: elo: Replace create_singlethread_workqueue with alloc_ordered_workqueue
2026-10-28 11:18 [PATCH 0/3] HID: Replace deprecated create_singlethread_workqueue George Karagounis
2026-10-28 11:18 ` [PATCH 1/3] HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueue George Karagounis
@ 2026-10-28 11:18 ` George Karagounis
2026-10-28 11:18 ` [PATCH 3/3] HID: logitech-hidpp: " George Karagounis
2 siblings, 0 replies; 4+ messages in thread
From: George Karagounis @ 2026-10-28 11:18 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires
Cc: Filipe Laíns, Bastien Nocera, linux-input, linux-kernel, mail
create_singlethread_workqueue() is deprecated. Replace it with
alloc_ordered_workqueue() for the elousb workqueue. WQ_MEM_RECLAIM
is added to ensure hardware events can be processed under memory
pressure.
Signed-off-by: George Karagounis <mail@taterr.org>
---
drivers/hid/hid-elo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-elo.c b/drivers/hid/hid-elo.c
index 86e8729e1975..72fdc073ae39 100644
--- a/drivers/hid/hid-elo.c
+++ b/drivers/hid/hid-elo.c
@@ -296,7 +296,7 @@ static int __init elo_driver_init(void)
{
int ret;
- wq = create_singlethread_workqueue("elousb");
+ wq = alloc_ordered_workqueue("elousb", WQ_MEM_RECLAIM);
if (!wq)
return -ENOMEM;
--
2.56.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 3/3] HID: logitech-hidpp: Replace create_singlethread_workqueue with alloc_ordered_workqueue
2026-10-28 11:18 [PATCH 0/3] HID: Replace deprecated create_singlethread_workqueue George Karagounis
2026-10-28 11:18 ` [PATCH 1/3] HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueue George Karagounis
2026-10-28 11:18 ` [PATCH 2/3] HID: elo: " George Karagounis
@ 2026-10-28 11:18 ` George Karagounis
2 siblings, 0 replies; 4+ messages in thread
From: George Karagounis @ 2026-10-28 11:18 UTC (permalink / raw)
To: Jiri Kosina, Benjamin Tissoires
Cc: Filipe Laíns, Bastien Nocera, linux-input, linux-kernel, mail
create_singlethread_workqueue() is deprecated. Replace it with
alloc_ordered_workqueue() for the force feedback sendqueue.
WQ_MEM_RECLAIM is added to ensure hardware events can be processed
under memory pressure.
Signed-off-by: George Karagounis <mail@taterr.org>
---
drivers/hid/hid-logitech-hidpp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 27d83b8bbaaf..4efd26450539 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -2875,7 +2875,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp,
error = -ENOMEM;
goto err_free_data;
}
- data->wq = create_singlethread_workqueue("hidpp-ff-sendqueue");
+ data->wq = alloc_ordered_workqueue("hidpp-ff-sendqueue", WQ_MEM_RECLAIM);
if (!data->wq) {
error = -ENOMEM;
goto err_free_effect_ids;
--
2.56.0
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-10-28 11:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 11:18 [PATCH 0/3] HID: Replace deprecated create_singlethread_workqueue George Karagounis
2026-10-28 11:18 ` [PATCH 1/3] HID: haptic: Replace create_singlethread_workqueue with alloc_ordered_workqueue George Karagounis
2026-10-28 11:18 ` [PATCH 2/3] HID: elo: " George Karagounis
2026-10-28 11:18 ` [PATCH 3/3] HID: logitech-hidpp: " George Karagounis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®