2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00

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>
This commit is contained in:
Joerg Roedel 2015-07-22 17:29:47 +02:00
parent 55d940430a
commit 2309bd793e

View File

@ -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;
}