dm: convert workqueues to alloc_ordered
Convert all create[_singlethread]_work() users to the new alloc[_ordered]_workqueue(). This conversion is mechanical and doesn't introduce any behavior change. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:

committed by
Alasdair G Kergon

parent
f521f074ab
commit
4d4d66ab53
@@ -1883,7 +1883,7 @@ static struct mapped_device *alloc_dev(int minor)
|
||||
add_disk(md->disk);
|
||||
format_dev_t(md->name, MKDEV(_major, minor));
|
||||
|
||||
md->wq = create_singlethread_workqueue("kdmflush");
|
||||
md->wq = alloc_ordered_workqueue("kdmflush", WQ_MEM_RECLAIM);
|
||||
if (!md->wq)
|
||||
goto bad_thread;
|
||||
|
||||
|
Reference in New Issue
Block a user