]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
nfsd: update workqueue creation
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 14 Nov 2016 16:13:43 +0000 (11:13 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 14 Nov 2016 16:13:43 +0000 (11:13 -0500)
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: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4callback.c

index 211dc2aed8e182934a81f05090f5319bd11a7608..eb78109d666c1a4d8cc62fea22919f824ae93024 100644 (file)
@@ -1061,7 +1061,7 @@ static const struct rpc_call_ops nfsd4_cb_ops = {
 
 int nfsd4_create_callback_queue(void)
 {
-       callback_wq = create_singlethread_workqueue("nfsd4_callbacks");
+       callback_wq = alloc_ordered_workqueue("nfsd4_callbacks", 0);
        if (!callback_wq)
                return -ENOMEM;
        return 0;