Re: [PATCH v5 1/1] PCI/IOV: Add reentrant locking in sriov_add_vfs/sriov_del_vfs for complete serialization

From: Lukas Wunner

Date: Tue Mar 03 2026 - 14:31:22 EST


On Tue, Mar 03, 2026 at 07:19:31PM +0100, Lukas Wunner wrote:
> Also, I would put this in the existing pci_lock_rescan_remove(),
> i.e. without introducing a new _reentrant variant, because these
> deadlocks exist elsewhere. They're known to happen on unplug in
> pciehp as well.

Actually, scratch this particular comment. The deadlock in pciehp
is actually an AB-BA deadlock, not recursive acquisition.