]> 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)
commit97fd20a746487d30b3444d3ad330c8bbafb5cf03
tree64d30ce5111b1080f063adeef861bad127eb6ad3
parentd413fb0e8900a9df22c5cfea7eb1f0b7f76b77a0
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: 2631cc0e2db1 ("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