Skip to content

PCI: Locking related improvements

Ilpo Järvinen linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Use lockdep_assert_held(pci_bus_sem) to verify lock is helddrivers/pci/pci.c+4 -10 replies
2/3PCI: Use device_lock_assert() to verify device lock is helddrivers/pci/pci.c+10 -20 replies
3/3PCI: Consolidate pci_bus/slot_lock/unlock/trylock()drivers/pci/pci.c+49 -540 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] PCI: Locking related improvements

Hi all,

Here are a few locking related coding quality improvements, none of them aims to introduce any function changes. First two convert "must be asserted" comments into lockdep asserts for easier detection of violations. The last patch consolidates almost duplicated code in the bus/slot locking function.

This series based is based on top of the fix (the last change would obviously conflict with it):

https://patchwork.kernel.org/project/linux-pci/patch/[email protected]/

Ilpo Järvinen (3):
PCI: Use lockdep_assert_held(pci_bus_sem) to verify lock is held
PCI: Use device_lock_assert() to verify device lock is held
PCI: Consolidate pci_bus/slot_lock/unlock/trylock()

 drivers/pci/pci.c | 120 ++++++++++++++++++++++++----------------------
 1 file changed, 63 insertions(+), 57 deletions(-)

base-commit: 270f0a8620a2d8fac3bcab3779df782d85b3b4bf

Signature · 1 line
2.39.5