iommufd: Assert devices_lock for iommufd_hw_pagetable_has_group()
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 1 Mar 2023 19:30:18 +0000 (15:30 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Mar 2023 14:51:56 +0000 (10:51 -0400)
commit085fcc7eb759c2b483f85b322e8c5146610010fd
treee694d8eb844034f85887a112a27be00770b3a678
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
iommufd: Assert devices_lock for iommufd_hw_pagetable_has_group()

The hwpt->devices list is locked by this, make it clearer.

Link: https://lore.kernel.org/r/1-v3-ae9c2975a131+2e1e8-iommufd_hwpt_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c