projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55d9404
)
iommu/vt-d: Remove dmar_global_lock from device_notifier
author
Joerg Roedel
<jroedel@suse.de>
Wed, 22 Jul 2015 15:29:47 +0000
(17:29 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 12 Aug 2015 14:23:36 +0000
(16:23 +0200)
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>
drivers/iommu/intel-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 0f258f0f5ac02f136017d4b484e8b3c084627793..d55ef9df0879e6c19f7da5bc0425beaaf5393b4d 100644
(file)
--- 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;
}