提交 88382036 编写于 作者: J J. Bruce Fields

nfsd: update workqueue creation

No real change in functionality, but the old interface seems to be
deprecated.

We don't actually care about ordering necessarily, but we do depend on
running at most one work item at a time: nfsd4_process_cb_update()
assumes that no other thread is running it, and that no new callbacks
are starting while it's running.
Reviewed-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 56094edd
...@@ -1061,7 +1061,7 @@ static const struct rpc_call_ops nfsd4_cb_ops = { ...@@ -1061,7 +1061,7 @@ static const struct rpc_call_ops nfsd4_cb_ops = {
int nfsd4_create_callback_queue(void) int nfsd4_create_callback_queue(void)
{ {
callback_wq = create_singlethread_workqueue("nfsd4_callbacks"); callback_wq = alloc_ordered_workqueue("nfsd4_callbacks", 0);
if (!callback_wq) if (!callback_wq)
return -ENOMEM; return -ENOMEM;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册