summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-07-22 17:29:47 +0200
committerJoerg Roedel <jroedel@suse.de>2015-08-12 16:23:36 +0200
commit2309bd793ead6d5e4ace611502aa87b3202856ca (patch)
treecba17b5ad76a3e2c4ac9670267d2d75c6679573f
parent55d940430ab91b89ff5fc7240555544d86475783 (diff)
iommu/vt-d: Remove dmar_global_lock from device_notifier
The code in the locked section does not touch anything protected by the dmar_global_lock. Remove it from there. Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r--drivers/iommu/intel-iommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 0f258f0f5ac0..d55ef9df0879 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4273,11 +4273,9 @@ static int device_notifier(struct notifier_block *nb,
if (!domain)
return 0;
- down_read(&dmar_global_lock);
dmar_remove_one_dev_info(domain, dev);
if (!domain_type_is_vm_or_si(domain) && list_empty(&domain->devices))
domain_exit(domain);
- up_read(&dmar_global_lock);
return 0;
}