aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-07-22 11:29:47 -0400
committerJoerg Roedel <jroedel@suse.de>2015-08-12 10:23:36 -0400
commit2309bd793ead6d5e4ace611502aa87b3202856ca (patch)
treecba17b5ad76a3e2c4ac9670267d2d75c6679573f /drivers/iommu
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>
Diffstat (limited to 'drivers/iommu')
-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,
4273 if (!domain) 4273 if (!domain)
4274 return 0; 4274 return 0;
4275 4275
4276 down_read(&dmar_global_lock);
4277 dmar_remove_one_dev_info(domain, dev); 4276 dmar_remove_one_dev_info(domain, dev);
4278 if (!domain_type_is_vm_or_si(domain) && list_empty(&domain->devices)) 4277 if (!domain_type_is_vm_or_si(domain) && list_empty(&domain->devices))
4279 domain_exit(domain); 4278 domain_exit(domain);
4280 up_read(&dmar_global_lock);
4281 4279
4282 return 0; 4280 return 0;
4283} 4281}