summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-13 20:59:57 +0100
committerAlasdair G Kergon <agk@redhat.com>2011-01-13 20:59:57 +0100
commit4d4d66ab5322fa9b0f51842a76139387a40e1ce9 (patch)
tree37485e2fa56c38044c496ac5632e8304c5cc25db /drivers/md/dm-raid1.c
parentdm stripe: switch from local workqueue to system_wq (diff)
downloadlinux-4d4d66ab5322fa9b0f51842a76139387a40e1ce9.tar.xz
linux-4d4d66ab5322fa9b0f51842a76139387a40e1ce9.zip
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>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 0d58b6f875cc..39917430f9f8 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1085,7 +1085,7 @@ static int mirror_ctr(struct dm_target *ti, unsigned int argc, char **argv)
ti->num_flush_requests = 1;
ti->num_discard_requests = 1;
- ms->kmirrord_wq = create_singlethread_workqueue("kmirrord");
+ ms->kmirrord_wq = alloc_ordered_workqueue("kmirrord", WQ_MEM_RECLAIM);
if (!ms->kmirrord_wq) {
DMERR("couldn't start kmirrord");
r = -ENOMEM;