mirror of https://gitee.com/openkylin/linux.git
GFS2: Change two WQ_RESCUERs into WQ_MEM_RECLAIM
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>
This commit is contained in:
parent
e8a7e48bb2
commit
d2115778c7
|
@ -1782,12 +1782,13 @@ int __init gfs2_glock_init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
glock_workqueue = alloc_workqueue("glock_workqueue", WQ_RESCUER |
|
glock_workqueue = alloc_workqueue("glock_workqueue", WQ_MEM_RECLAIM |
|
||||||
WQ_HIGHPRI | WQ_FREEZEABLE, 0);
|
WQ_HIGHPRI | WQ_FREEZEABLE, 0);
|
||||||
if (IS_ERR(glock_workqueue))
|
if (IS_ERR(glock_workqueue))
|
||||||
return PTR_ERR(glock_workqueue);
|
return PTR_ERR(glock_workqueue);
|
||||||
gfs2_delete_workqueue = alloc_workqueue("delete_workqueue", WQ_RESCUER |
|
gfs2_delete_workqueue = alloc_workqueue("delete_workqueue",
|
||||||
WQ_FREEZEABLE, 0);
|
WQ_MEM_RECLAIM | WQ_FREEZEABLE,
|
||||||
|
0);
|
||||||
if (IS_ERR(gfs2_delete_workqueue)) {
|
if (IS_ERR(gfs2_delete_workqueue)) {
|
||||||
destroy_workqueue(glock_workqueue);
|
destroy_workqueue(glock_workqueue);
|
||||||
return PTR_ERR(gfs2_delete_workqueue);
|
return PTR_ERR(gfs2_delete_workqueue);
|
||||||
|
|
Loading…
Reference in New Issue