diff options
author | Yi Liu <yi.l.liu@intel.com> | 2024-09-08 04:42:55 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2024-09-11 20:14:07 -0300 |
commit | d9dfb5e6225a0a99e08dc2a538b0c30a5a9a460c (patch) | |
tree | 2e0e332c5d74a34df9233993e19b81669e342224 /drivers/iommu/iommu.c | |
parent | 8f6887349b2f829a4121c518aeb064fc922714e4 (diff) | |
download | lwn-d9dfb5e6225a0a99e08dc2a538b0c30a5a9a460c.tar.gz lwn-d9dfb5e6225a0a99e08dc2a538b0c30a5a9a460c.zip |
iommufd: Avoid duplicated __iommu_group_set_core_domain() call
For the fault-capable hwpts, the iommufd_hwpt_detach_device() calls both
iommufd_fault_domain_detach_dev() and iommu_detach_group(). This would have
duplicated __iommu_group_set_core_domain() call since both functions call
it in the end. This looks no harm as the __iommu_group_set_core_domain()
returns if the new domain equals to the existing one. But it makes sense to
avoid such duplicated calls in caller side.
Link: https://patch.msgid.link/r/20240908114256.979518-2-yi.l.liu@intel.com
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/iommu.c')
0 files changed, 0 insertions, 0 deletions