workqueue: use WQ_MEM_RECLAIM instead of WQ_RESCUER
authorTejun Heo <tj@kernel.org>
Tue, 25 Jan 2011 13:35:54 +0000 (14:35 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 25 Jan 2011 13:35:54 +0000 (14:35 +0100)
WQ_RESCUER is now an internal flag and should only be used in the
workqueue implementation proper.  Use WQ_MEM_RECLAIM instead.

This doesn't introduce any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: dm-devel@redhat.com
Cc: Neil Brown <neilb@suse.de>
drivers/md/md.c
fs/nfs/inode.c
net/sunrpc/sched.c

index b76cfc89e1b57ce5557d7d4d931132c6f4efcc82..6352e84fd512a8a2f704ad2d565f127d31e7e11b 100644 (file)
@@ -7321,7 +7321,7 @@ static int __init md_init(void)
 {
        int ret = -ENOMEM;
 
-       md_wq = alloc_workqueue("md", WQ_RESCUER, 0);
+       md_wq = alloc_workqueue("md", WQ_MEM_RECLAIM, 0);
        if (!md_wq)
                goto err_wq;
 
index d8512423ba7298ee56368fd27e42d4d01fd7cee2..0855acdfe7061628c9a7b840d56af6d7075ba328 100644 (file)
@@ -1505,7 +1505,7 @@ static int nfsiod_start(void)
 {
        struct workqueue_struct *wq;
        dprintk("RPC:       creating workqueue nfsiod\n");
-       wq = alloc_workqueue("nfsiod", WQ_RESCUER, 0);
+       wq = alloc_workqueue("nfsiod", WQ_MEM_RECLAIM, 0);
        if (wq == NULL)
                return -ENOMEM;
        nfsiod_workqueue = wq;
index 243fc09b164e81865a902015f18bd87313413167..2841cc6bcfdad3d279064d6c41f70d068b244993 100644 (file)
@@ -908,7 +908,7 @@ static int rpciod_start(void)
         * Create the rpciod thread and wait for it to start.
         */
        dprintk("RPC:       creating workqueue rpciod\n");
-       wq = alloc_workqueue("rpciod", WQ_RESCUER, 0);
+       wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 0);
        rpciod_workqueue = wq;
        return rpciod_workqueue != NULL;
 }
This page took 0.033498 seconds and 5 git commands to generate.