]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/pci: Pass lockdep condition to pcm_mmcfg_list iterator
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 16 Jul 2019 22:12:27 +0000 (18:12 -0400)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 13 Aug 2019 21:29:22 +0000 (14:29 -0700)
commit842a56cf3eb00f717f9522766c0e7b71bafd5fc1
tree411253a9f2afc4b39d366062b59e7ee4714b8e3b
parentc2fa1e1bfa5b74558854a70b8afd797d43eb2743
x86/pci: Pass lockdep condition to pcm_mmcfg_list iterator

The pcm_mmcfg_list is traversed by list_for_each_entry_rcu() outside
of an RCU read-side critical section, which is safe because the
pci_mmcfg_lock is held.  This commit therefore adds a lockdep expression
to list_for_each_entry_rcu() in order t avoid lockdep warnings.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
arch/x86/pci/mmconfig-shared.c