iommu/amd: Remove domain->updated
authorJoerg Roedel <jroedel@suse.de>
Wed, 25 Sep 2019 13:22:55 +0000 (15:22 +0200)
committerJoerg Roedel <jroedel@suse.de>
Sat, 28 Sep 2019 12:43:36 +0000 (14:43 +0200)
commitf15d9a992f901d4f22db868adf800844d1cac9f2
tree2c3bb88ca50ec64df785f1343708c1c2b243a19e
parent0b15e02f0cc4fb34a9160de7ba6db3a4013dc1b7
iommu/amd: Remove domain->updated

This struct member was used to track whether a domain
change requires updates to the device-table and IOMMU cache
flushes. The problem is, that access to this field is racy
since locking in the common mapping code-paths has been
eliminated.

Move the updated field to the stack to get rid of all
potential races and remove the field from the struct.

Fixes: 92d420ec028d ("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
drivers/iommu/amd_iommu_types.h