NFS: Convert nfsiod to use alloc_workqueue()
create_singlethread_workqueue() is deprecated. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -1493,7 +1493,7 @@ static int nfsiod_start(void)
|
|||||||
{
|
{
|
||||||
struct workqueue_struct *wq;
|
struct workqueue_struct *wq;
|
||||||
dprintk("RPC: creating workqueue nfsiod\n");
|
dprintk("RPC: creating workqueue nfsiod\n");
|
||||||
wq = create_singlethread_workqueue("nfsiod");
|
wq = alloc_workqueue("nfsiod", WQ_RESCUER, 0);
|
||||||
if (wq == NULL)
|
if (wq == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
nfsiod_workqueue = wq;
|
nfsiod_workqueue = wq;
|
||||||
|
Reference in New Issue
Block a user