소스 검색

NFS: Convert nfsiod to use alloc_workqueue()

create_singlethread_workqueue() is deprecated.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 14 년 전
부모
커밋
609588928f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fs/nfs/inode.c

+ 1 - 1
fs/nfs/inode.c

@@ -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;