]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Remove unnecessary rcu_read_locks
authorLukasz Odzioba <lukasz.odzioba@intel.com>
Mon, 20 May 2019 13:41:28 +0000 (15:41 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 14:14:49 +0000 (16:14 +0200)
commitd45e04220e091fe61a3601fa30122a23429a9add
tree28ffc920a4d7d6ee7187e1d85a6f5ec356790091
parent133b9891312156d2940c99296e23e90c2fcc2a13
iommu/vt-d: Remove unnecessary rcu_read_locks

We use RCU's for rarely updated lists like iommus, rmrr, atsr units.

I'm not sure why domain_remove_dev_info() in domain_exit() was surrounded
by rcu_read_lock. Lock was present before refactoring in eeefe84fce,
but it was related to rcu list, not domain_remove_dev_info function.

dmar_remove_one_dev_info() doesn't touch any of those lists, so it doesn't
require a lock. In fact it is called 6 times without it anyway.

Fixes: eeefe84fcee6 ("iommu/vt-d: Unify domain->iommu attach/detachment")
Signed-off-by: Lukasz Odzioba <lukasz.odzioba@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c