[PATCH 3/3] HID: logitech-hidpp: Replace create_singlethread_workqueue with alloc_ordered_workqueue
From: George Karagounis
Date: Wed Oct 28 2026 - 07:22:47 EST
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@xxxxxxxxxx>
---
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