]> 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)
commitf03c089a6336a5bc78794c7ebb5612e3f46ba19c
treecb561548adf7e4712f9c055f22b7c10122402f38
parent4eb5908aeb8a03f888b296d757baa15b75941ade
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: c7876ac390c3 ('iommu/vt-d: Get rid of domain->iommu_lock')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c