]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Remove amd_iommu_devtable_lock
authorJoerg Roedel <jroedel@suse.de>
Wed, 25 Sep 2019 13:22:56 +0000 (15:22 +0200)
committerJoerg Roedel <jroedel@suse.de>
Sat, 28 Sep 2019 12:43:46 +0000 (14:43 +0200)
commit8f2f7179b8caf5dae312adee07dc2646c2a8c721
tree64d30ce5111b1080f063adeef861bad127eb6ad3
parentb4156d4bc0fffc398799e35c428fa77a2234f87f
iommu/amd: Remove amd_iommu_devtable_lock

The lock is not necessary because the device table does not
contain shared state that needs protection. Locking is only
needed on an individual entry basis, and that needs to
happen on the iommu_dev_data level.

Fixes: dcb4ee808767 ("iommu/amd: Relax locking in dma_ops path")
Reviewed-by: Filippo Sironi <sironi@amazon.de>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c