On Thu, 03 Oct 2024, Keith Busch wrote:
On Thu, Oct 03, 2024 at 10:04:16AM -0700, Davidlohr Bueso wrote:
Well the thing is it is crashing on me, as reported. I was able to reproduce
the deadlock with rescan_remove_lock on a switched CXL topology (via sysfs
remove/rescan parent/child). This is why I tested your full pci-bus-locking-2024-09-09
branch hoping the last patch would fix it, but still cannot confirm because
of that nil ptr deref.
You might need something different than anything in that series if you
are doing concurrent sysfs access during removal. This is what I wrote
up for that issue:
The crash is *only* happening in your branch. The test runs into a deadlock
on a vanilla kernel.
https://lore.kernel.org/linux-pci/20240719185513.3376321-1-kbusch@xxxxxxxx/T/#u
This does not address either, fyi.