diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-06-18 13:58:30 +0530 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-06-21 11:13:44 +0200 |
commit | cf7513e759d19908c29cf2c129587ecda34a5c19 (patch) | |
tree | 12f3b475ae6fe8b7e809977ccf48844a6f07710f /drivers/iommu/amd_iommu_v2.c | |
parent | 0076cd3d063a43f69eba2d0a1d13927897c8ed35 (diff) | |
download | linux-stable-cf7513e759d19908c29cf2c129587ecda34a5c19.tar.gz linux-stable-cf7513e759d19908c29cf2c129587ecda34a5c19.tar.bz2 linux-stable-cf7513e759d19908c29cf2c129587ecda34a5c19.zip |
iommu/amd: Remove create_workqueue
alloc_workqueue replaces deprecated create_workqueue().
A dedicated workqueue has been used since the workitem (viz
&fault->work), is involved in IO page-fault handling.
WQ_MEM_RECLAIM has been set to guarantee forward progress under memory
pressure, which is a requirement here.
Since there are only a fixed number of work items, explicit concurrency
limit is unnecessary.
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_v2.c')
-rw-r--r-- | drivers/iommu/amd_iommu_v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c index 56999d2fac07..0d52ceb0846d 100644 --- a/drivers/iommu/amd_iommu_v2.c +++ b/drivers/iommu/amd_iommu_v2.c @@ -961,7 +961,7 @@ static int __init amd_iommu_v2_init(void) spin_lock_init(&state_lock); ret = -ENOMEM; - iommu_wq = create_workqueue("amd_iommu_v2"); + iommu_wq = alloc_workqueue("amd_iommu_v2", WQ_MEM_RECLAIM, 0); if (iommu_wq == NULL) goto out; |