iommu/vt-d: Don't register bus-notifier under dmar_global_lock
authorJoerg Roedel <jroedel@suse.de>
Fri, 6 Oct 2017 13:00:53 +0000 (15:00 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Oct 2017 13:09:30 +0000 (15:09 +0200)
commitec154bf56b276a0bb36079a5d22a267b5f417801
tree42d05fab0d9473435a887dba7589f1659863af9c
parent9e66317d3c92ddaab330c125dfe9d06eee268aff
iommu/vt-d: Don't register bus-notifier under dmar_global_lock

The notifier function will take the dmar_global_lock too, so
lockdep complains about inverse locking order when the
notifier is registered under the dmar_global_lock.

Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Fixes: 59ce0515cdaf ('iommu/vt-d: Update DRHD/RMRR/ATSR device scope caches when PCI hotplug happens')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
include/linux/dmar.h