Re: [PATCH] PCI/IOV: Fix recursive locking deadlock on pci_rescan_remove_lock

From: Ionut Nechita (Wind River)

Date: Sun Feb 22 2026 - 06:30:50 EST


From: Ionut Nechita <ionut.nechita@xxxxxxxxxxxxx>

Hi Bjorn,

I tested Niklas's patches (from next-20260205):

2fa119c0e5e5 ("Revert "PCI/IOV: Add PCI rescan-remove locking when enabling/disabling SR-IOV"")
a5338e365c45 ("PCI/IOV: Fix race between SR-IOV enable/disable and hotplug")

With an initial round of testing on a NIC controller using the i40e
driver, the deadlock no longer reproduces. SR-IOV enable/disable and
hot-remove via sysfs work as expected without triggering the recursive
locking warning on PREEMPT_RT or hanging on non-RT kernels.

I have another round of testing planned over the coming days to cover
additional scenarios, but so far everything looks good.

Thanks,
Ionut