Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

whci: Remove deprecated create_singlethread_workqueue

alloc_ordered_workqueue replaces the deprecated
create_singlethread_workqueue.

The workqueue "workqueue" has multiple workitems which may require
ordering. Hence, a dedicated ordered workqueue has been used.
Since the workqueue is not being used on a memory reclaim path,
WQ_MEM_RECLAIM has not been set.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bhaktipriya Shridhar and committed by
Greg Kroah-Hartman
d35cbed6 13a88bf5

+1 -1
+1 -1
drivers/usb/host/whci/init.c
··· 65 65 init_waitqueue_head(&whc->cmd_wq); 66 66 init_waitqueue_head(&whc->async_list_wq); 67 67 init_waitqueue_head(&whc->periodic_list_wq); 68 - whc->workqueue = create_singlethread_workqueue(dev_name(&whc->umc->dev)); 68 + whc->workqueue = alloc_ordered_workqueue(dev_name(&whc->umc->dev), 0); 69 69 if (whc->workqueue == NULL) { 70 70 ret = -ENOMEM; 71 71 goto error;