diff options
author | Tejun Heo <tj@kernel.org> | 2011-01-13 14:59:57 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-01-13 14:59:57 -0500 |
commit | 4d4d66ab5322fa9b0f51842a76139387a40e1ce9 (patch) | |
tree | 37485e2fa56c38044c496ac5632e8304c5cc25db /drivers/md/dm-mpath.c | |
parent | f521f074abe7b3990f5df65482cdc3d851b80665 (diff) |
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-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index fcc59c3f756e..35ab5781f88f 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -1675,7 +1675,7 @@ static int __init dm_multipath_init(void) | |||
1675 | return -EINVAL; | 1675 | return -EINVAL; |
1676 | } | 1676 | } |
1677 | 1677 | ||
1678 | kmultipathd = create_workqueue("kmpathd"); | 1678 | kmultipathd = alloc_workqueue("kmpathd", WQ_MEM_RECLAIM, 0); |
1679 | if (!kmultipathd) { | 1679 | if (!kmultipathd) { |
1680 | DMERR("failed to create workqueue kmpathd"); | 1680 | DMERR("failed to create workqueue kmpathd"); |
1681 | dm_unregister_target(&multipath_target); | 1681 | dm_unregister_target(&multipath_target); |
@@ -1689,7 +1689,8 @@ static int __init dm_multipath_init(void) | |||
1689 | * old workqueue would also create a bottleneck in the | 1689 | * old workqueue would also create a bottleneck in the |
1690 | * path of the storage hardware device activation. | 1690 | * path of the storage hardware device activation. |
1691 | */ | 1691 | */ |
1692 | kmpath_handlerd = create_singlethread_workqueue("kmpath_handlerd"); | 1692 | kmpath_handlerd = alloc_ordered_workqueue("kmpath_handlerd", |
1693 | WQ_MEM_RECLAIM); | ||
1693 | if (!kmpath_handlerd) { | 1694 | if (!kmpath_handlerd) { |
1694 | DMERR("failed to create workqueue kmpath_handlerd"); | 1695 | DMERR("failed to create workqueue kmpath_handlerd"); |
1695 | destroy_workqueue(kmultipathd); | 1696 | destroy_workqueue(kmultipathd); |