]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Silence RCU-list debugging warnings
authorQian Cai <cai@lca.pw>
Thu, 5 Mar 2020 20:15:02 +0000 (15:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:53 +0000 (11:01 +0200)
commit47c505e7b0d1b93721f2797e5d57abc53a5cd671
treea1021f997c0d6b587a45cc292b48aa9648903650
parente5501612e01cdfb3335c36bc3234edc515539a08
iommu/vt-d: Silence RCU-list debugging warnings

[ Upstream commit d9c01a35581ea04e49d344ebac1e11fea126ac5c ]

Similar to the commit 31154374b935 ("iommu/vt-d: Fix RCU list debugging
warnings"), there are several other places that call
list_for_each_entry_rcu() outside of an RCU read side critical section
but with dmar_global_lock held. Silence those false positives as well.

 drivers/iommu/intel-iommu.c:4288 RCU-list traversed in non-reader section!!
 1 lock held by swapper/0/1:
  #0: ffffffff935892c8 (dmar_global_lock){+.+.}, at: intel_iommu_init+0x1ad/0xb97

 drivers/iommu/dmar.c:366 RCU-list traversed in non-reader section!!
 1 lock held by swapper/0/1:
  #0: ffffffff935892c8 (dmar_global_lock){+.+.}, at: intel_iommu_init+0x125/0xb97

 drivers/iommu/intel-iommu.c:5057 RCU-list traversed in non-reader section!!
 1 lock held by swapper/0/1:
  #0: ffffffffa71892c8 (dmar_global_lock){++++}, at: intel_iommu_init+0x61a/0xb13

Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/dmar.c
include/linux/dmar.h