[PATCH v3 15/18] HID: logitech-hidpp: use alloc_ordered_workqueue() for FF queue

From: Dmitry Torokhov

Date: Fri Nov 20 2026 - 03:48:22 EST


create_singlethread_workqueue() is a deprecated wrapper around
alloc_ordered_workqueue() that unconditionally enables WQ_MEM_RECLAIM,
allocating a rescuer thread. Force-feedback packet submission does not
run on a memory-reclaim path, so allocate the send queue with
alloc_ordered_workqueue() and zero flags to preserve strict in-order
execution without unnecessary rescuer overhead.

Tested-by: Gideon Heinz <gideonheinz02@xxxxxxxxx>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
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 12b499fe08e7..de9087459273 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -2778,7 +2778,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp, struct input_dev *dev)
/* init the hardware command queue */
atomic_set(&data->workqueue_size, 0);

- data->wq = create_singlethread_workqueue("hidpp-ff-sendqueue");
+ data->wq = alloc_ordered_workqueue("hidpp-ff-sendqueue", 0);
if (!data->wq)
return -ENOMEM;


--
2.56.1.750.gf70dc682cf-goog