提交 d35cbed6 编写于 作者: B Bhaktipriya Shridhar 提交者: Greg Kroah-Hartman

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: NBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 13a88bf5
...@@ -65,7 +65,7 @@ int whc_init(struct whc *whc) ...@@ -65,7 +65,7 @@ int whc_init(struct whc *whc)
init_waitqueue_head(&whc->cmd_wq); init_waitqueue_head(&whc->cmd_wq);
init_waitqueue_head(&whc->async_list_wq); init_waitqueue_head(&whc->async_list_wq);
init_waitqueue_head(&whc->periodic_list_wq); init_waitqueue_head(&whc->periodic_list_wq);
whc->workqueue = create_singlethread_workqueue(dev_name(&whc->umc->dev)); whc->workqueue = alloc_ordered_workqueue(dev_name(&whc->umc->dev), 0);
if (whc->workqueue == NULL) { if (whc->workqueue == NULL) {
ret = -ENOMEM; ret = -ENOMEM;
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册