Skip to content

Commit

Permalink
iommu/vt-d: Remove dmar_global_lock from device_notifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Aug 12, 2015
1 parent 55d9404 commit 2309bd7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2309bd7

Please sign in to comment.