]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbea64033dd7b5fb6296eda8266acab6364ce1554
treecb561548adf7e4712f9c055f22b7c10122402f38
parent8c82d6ec5abcf9691d37f329bf5f42f6868405db
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: 55d940430ab9 ('iommu/vt-d: Get rid of domain->iommu_lock')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c