GFS2: Change two WQ_RESCUERs into WQ_MEM_RECLAIM
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 3 Nov 2010 19:58:53 +0000 (19:58 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 30 Nov 2010 10:21:55 +0000 (10:21 +0000)
The WQ_RESCUER flag should only be used internally to the
workqueue implementation.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
fs/gfs2/glock.c

index f92c1770416981df8b625b6f918bac6c061c6e5e..5a56568d289b881a08db55413043e3a905fed22a 100644 (file)
@@ -1782,12 +1782,13 @@ int __init gfs2_glock_init(void)
        }
 #endif
 
-       glock_workqueue = alloc_workqueue("glock_workqueue", WQ_RESCUER |
+       glock_workqueue = alloc_workqueue("glock_workqueue", WQ_MEM_RECLAIM |
                                          WQ_HIGHPRI | WQ_FREEZEABLE, 0);
        if (IS_ERR(glock_workqueue))
                return PTR_ERR(glock_workqueue);
-       gfs2_delete_workqueue = alloc_workqueue("delete_workqueue", WQ_RESCUER |
-                                               WQ_FREEZEABLE, 0);
+       gfs2_delete_workqueue = alloc_workqueue("delete_workqueue",
+                                               WQ_MEM_RECLAIM | WQ_FREEZEABLE,
+                                               0);
        if (IS_ERR(gfs2_delete_workqueue)) {
                destroy_workqueue(glock_workqueue);
                return PTR_ERR(gfs2_delete_workqueue);