[PATCH v2 2/3] HID: elo: Replace create_singlethread_workqueue with alloc_ordered_workqueue

From: George Karagounis

Date: Wed Oct 28 2026 - 16:09:39 EST


create_singlethread_workqueue() is deprecated. Replace it with

alloc_ordered_workqueue() for the elousb workqueue.

Use flags=0 as this workqueue only transmits outgoing output reports

and is not depended upon during memory reclaim. Using WQ_MEM_RECLAIM

would unnecessarily spawn a rescuer thread and trigger

check_flush_dependency() warnings.

Signed-off-by: George Karagounis <mail@xxxxxxxxxx>
---
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..8a96c0f7d5b0 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", 0);
if (!wq)
return -ENOMEM;

--
2.56.0