diff options
author | Joerg Roedel <jroedel@suse.de> | 2019-09-25 15:22:57 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-09-28 14:43:52 +0200 |
commit | f6c0bfce271b2dd613e8b8e009eefe89c1f788e8 (patch) | |
tree | c01bbfce2692ac4d1f7f620a26ca98c52adea28c /kernel/time/alarmtimer.c | |
parent | iommu/amd: Remove amd_iommu_devtable_lock (diff) | |
download | linux-f6c0bfce271b2dd613e8b8e009eefe89c1f788e8.tar.xz linux-f6c0bfce271b2dd613e8b8e009eefe89c1f788e8.zip |
iommu/amd: Take domain->lock for complete attach/detach path
The code-paths before __attach_device() and __detach_device() are called
also access and modify domain state, so take the domain lock there too.
This allows to get rid of the __detach_device() function.
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>
Diffstat (limited to 'kernel/time/alarmtimer.c')
0 files changed, 0 insertions, 0 deletions