]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd/iova_bitmap: Remove iterator logic
authorJoao Martins <joao.m.martins@oracle.com>
Thu, 27 Jun 2024 11:01:05 +0000 (12:01 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Jun 2024 16:12:23 +0000 (13:12 -0300)
commit53e6b65693b68519dcfd384280bfc3d34c7398e2
tree224d26f54ca7d49aaddd343c5b467d5f2b6dafa7
parent7a7bba16244a5c55861d8fefea72cdbb8b05323e
iommufd/iova_bitmap: Remove iterator logic

The newly introduced dynamic pinning/windowing greatly simplifies the code
and there's no obvious performance advantage that has been identified that
justifies maintinaing both schemes.

Remove the iterator logic and have iova_bitmap_for_each() just invoke the
callback with the total iova/length.

Fixes: 2780025e01e2 ("iommufd/iova_bitmap: Handle recording beyond the mapped pages")
Link: https://lore.kernel.org/r/20240627110105.62325-12-joao.m.martins@oracle.com
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Matt Ochs <mochs@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/iova_bitmap.c