aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-25 08:35:54 -0500
committerTejun Heo <tj@kernel.org>2011-01-25 08:35:54 -0500
commitada609ee2ac2e03bd8abb07f9b3e92cd2e650f19 (patch)
treeccc1051a961b12448420428b5a400a6333d3e821
parentc723fdab8aa728dc2bf0da6a0de8bb9c3f588d84 (diff)
workqueue: use WQ_MEM_RECLAIM instead of WQ_RESCUER
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>
-rw-r--r--drivers/md/md.c2
-rw-r--r--fs/nfs/inode.c2
-rw-r--r--net/sunrpc/sched.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index b76cfc89e1b5..6352e84fd512 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7321,7 +7321,7 @@ static int __init md_init(void)
7321{ 7321{
7322 int ret = -ENOMEM; 7322 int ret = -ENOMEM;
7323 7323
7324 md_wq = alloc_workqueue("md", WQ_RESCUER, 0); 7324 md_wq = alloc_workqueue("md", WQ_MEM_RECLAIM, 0);
7325 if (!md_wq) 7325 if (!md_wq)
7326 goto err_wq; 7326 goto err_wq;
7327 7327
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index d8512423ba72..0855acdfe706 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1505,7 +1505,7 @@ static int nfsiod_start(void)
1505{ 1505{
1506 struct workqueue_struct *wq; 1506 struct workqueue_struct *wq;
1507 dprintk("RPC: creating workqueue nfsiod\n"); 1507 dprintk("RPC: creating workqueue nfsiod\n");
1508 wq = alloc_workqueue("nfsiod", WQ_RESCUER, 0); 1508 wq = alloc_workqueue("nfsiod", WQ_MEM_RECLAIM, 0);
1509 if (wq == NULL) 1509 if (wq == NULL)
1510 return -ENOMEM; 1510 return -ENOMEM;
1511 nfsiod_workqueue = wq; 1511 nfsiod_workqueue = wq;
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
index 243fc09b164e..2841cc6bcfda 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
@@ -908,7 +908,7 @@ static int rpciod_start(void)
908 * Create the rpciod thread and wait for it to start. 908 * Create the rpciod thread and wait for it to start.
909 */ 909 */
910 dprintk("RPC: creating workqueue rpciod\n"); 910 dprintk("RPC: creating workqueue rpciod\n");
911 wq = alloc_workqueue("rpciod", WQ_RESCUER, 0); 911 wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 0);
912 rpciod_workqueue = wq; 912 rpciod_workqueue = wq;
913 return rpciod_workqueue != NULL; 913 return rpciod_workqueue != NULL;
914} 914}