Commit d2f321c
PCI: Fix pci_slot_lock () device locking
[ Upstream commit 1f5e57c ]
Like pci_bus_lock(), pci_slot_lock() needs to lock the bridge device to
prevent warnings like:
pcieport 0000:e2:05.0: unlocked secondary bus reset via: pciehp_reset_slot+0x55/0xa0
Take and release the lock for the bridge providing the slot for the
lock/trylock and unlock routines.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://patch.msgid.link/20260130165953.751063-3-kbusch@meta.com
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 7611479 commit d2f321c
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5657 | 5657 | | |
5658 | 5658 | | |
5659 | 5659 | | |
5660 | | - | |
| 5660 | + | |
5661 | 5661 | | |
5662 | | - | |
5663 | | - | |
| 5662 | + | |
5664 | 5663 | | |
5665 | 5664 | | |
5666 | 5665 | | |
| |||
5677 | 5676 | | |
5678 | 5677 | | |
5679 | 5678 | | |
5680 | | - | |
| 5679 | + | |
| 5680 | + | |
| 5681 | + | |
| 5682 | + | |
5681 | 5683 | | |
5682 | 5684 | | |
5683 | 5685 | | |
| |||
5692 | 5694 | | |
5693 | 5695 | | |
5694 | 5696 | | |
5695 | | - | |
| 5697 | + | |
5696 | 5698 | | |
5697 | 5699 | | |
5698 | 5700 | | |
| |||
5702 | 5704 | | |
5703 | 5705 | | |
5704 | 5706 | | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
5705 | 5710 | | |
5706 | 5711 | | |
5707 | 5712 | | |
5708 | 5713 | | |
5709 | 5714 | | |
5710 | | - | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
5711 | 5719 | | |
5712 | 5720 | | |
5713 | 5721 | | |
| |||
5732 | 5740 | | |
5733 | 5741 | | |
5734 | 5742 | | |
| 5743 | + | |
| 5744 | + | |
| 5745 | + | |
5735 | 5746 | | |
5736 | 5747 | | |
5737 | 5748 | | |
| |||
0 commit comments