]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Fix dead-locks in disable_dmar_iommu() path
authorJoerg Roedel <jroedel@suse.de>
Tue, 8 Nov 2016 14:08:26 +0000 (15:08 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 8 Nov 2016 14:08:26 +0000 (15:08 +0100)
commit42383bfd22e646b45e3368d2560164b0588d85a3
treecb561548adf7e4712f9c055f22b7c10122402f38
parent7788df172c0f4094f7f6bfd5f80f98c1d8c0a3f6
iommu/vt-d: Fix dead-locks in disable_dmar_iommu() path

It turns out that the disable_dmar_iommu() code-path tried
to get the device_domain_lock recursivly, which will
dead-lock when this code runs on dmar removal. Fix both
code-paths that could lead to the dead-lock.

Fixes: 83f6a8bb62b2 ('iommu/vt-d: Get rid of domain->iommu_lock')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c