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: https://lore.kernel.org/linux-pci/20240719185513.3376321-1-kbusch@xxxxxxxx/T/#u The last reply from GregKH was against this proposal, but I briefly spoke with him a couple weeks ago and I think he may accept this if I resubmit.