Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ada609ee authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Cc: dm-devel@redhat.com
Cc: Neil Brown <neilb@suse.de>
parent c723fdab
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -7321,7 +7321,7 @@ static int __init md_init(void)
{
{
	int ret = -ENOMEM;
	int ret = -ENOMEM;


	md_wq = alloc_workqueue("md", WQ_RESCUER, 0);
	md_wq = alloc_workqueue("md", WQ_MEM_RECLAIM, 0);
	if (!md_wq)
	if (!md_wq)
		goto err_wq;
		goto err_wq;


+1 −1
Original line number Original line Diff line number Diff line
@@ -1505,7 +1505,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 = alloc_workqueue("nfsiod", WQ_RESCUER, 0);
	wq = alloc_workqueue("nfsiod", WQ_MEM_RECLAIM, 0);
	if (wq == NULL)
	if (wq == NULL)
		return -ENOMEM;
		return -ENOMEM;
	nfsiod_workqueue = wq;
	nfsiod_workqueue = wq;
+1 −1
Original line number Original line Diff line number Diff line
@@ -908,7 +908,7 @@ static int rpciod_start(void)
	 * Create the rpciod thread and wait for it to start.
	 * Create the rpciod thread and wait for it to start.
	 */
	 */
	dprintk("RPC:       creating workqueue rpciod\n");
	dprintk("RPC:       creating workqueue rpciod\n");
	wq = alloc_workqueue("rpciod", WQ_RESCUER, 0);
	wq = alloc_workqueue("rpciod", WQ_MEM_RECLAIM, 0);
	rpciod_workqueue = wq;
	rpciod_workqueue = wq;
	return rpciod_workqueue != NULL;
	return rpciod_workqueue != NULL;
}
}