[PATCH 16/18] HID: logitech-hidpp: use alloc_ordered_workqueue() for FF queue
From: Dmitry Torokhov
Date: Mon Nov 09 2026 - 01:13:56 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.
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 7f5de4caf118..d0ec973a4b49 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -2870,7 +2870,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.0.506.g506a7eabc5-goog