Skip to content

Commit

Permalink
iommu/vt-d: Remove iova_cache_get/put()
Browse files Browse the repository at this point in the history
These have been done in drivers/iommu/dma-iommu.c. Remove this duplicate
code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220214025704.3184654-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20220301020159.633356-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Lu Baolu authored and Joerg Roedel committed Mar 4, 2022
1 parent c5d2754 commit c8850a6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/iommu/intel/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3381,9 +3381,6 @@ static inline int iommu_devinfo_cache_init(void)
static int __init iommu_init_mempool(void)
{
int ret;
ret = iova_cache_get();
if (ret)
return ret;

ret = iommu_domain_cache_init();
if (ret)
Expand All @@ -3395,7 +3392,6 @@ static int __init iommu_init_mempool(void)

kmem_cache_destroy(iommu_domain_cache);
domain_error:
iova_cache_put();

return -ENOMEM;
}
Expand All @@ -3404,7 +3400,6 @@ static void __init iommu_exit_mempool(void)
{
kmem_cache_destroy(iommu_devinfo_cache);
kmem_cache_destroy(iommu_domain_cache);
iova_cache_put();
}

static void __init init_no_remapping_devices(void)
Expand Down

0 comments on commit c8850a6

Please sign in to comment.