diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2023-03-22 14:49:55 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-03-22 15:45:17 +0100 |
commit | 49a22aae7d9cfd1e8060b7ea4e0a1537f60dd39d (patch) | |
tree | cc93f3241a7724b0e2f2bca914da0d619551d4e4 /arch/s390 | |
parent | 33793748de8fde338c11277d3d16dadc79ba65bf (diff) | |
download | lwn-49a22aae7d9cfd1e8060b7ea4e0a1537f60dd39d.tar.gz lwn-49a22aae7d9cfd1e8060b7ea4e0a1537f60dd39d.zip |
iommu: Replace device_lock() with group->mutex
device_lock() was used in iommu_group_store_type() to prevent the
devices in an iommu group from being attached by any device driver.
On the other hand, in order to avoid lock race between group->mutex
and device_lock(), it limited the usage scenario to the singleton
groups.
We already have the DMA ownership scheme to avoid driver attachment
and group->mutex ensures that device ops are always valid, there's
no need for device_lock() anymore. Remove device_lock() and the
singleton group limitation.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230322064956.263419-6-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions