Skip to content

RFC PCI: acpiphp: workaround race between hotplug and SCSI_SCAN_ASYNC job

Igor Mammedov linux-acpi linux-pci lkml oe-kbuild-all stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: acpiphp: enable slot only if it hasn't been enabled alreadydrivers/pci/hotplug/acpiphp_glue.c+3 -14 replies
2/2PCI: acpiphp: slowdown hotplug if hotplugging multiple devices at a timedrivers/pci/hotplug/acpiphp_glue.c+6 -012 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchFiona Ebner
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/2] PCI: acpiphp: workaround race between hotplug and SCSI_SCAN_ASYNC job

Hacks to mask a race between HBA scan job and bridge re-configuration(s) during hotplug.

I don't like it a bit but it something that could be done quickly and solves problems that were reported.

Other options to discuss/possibly more invasive:
1: make sure pci_assign_unassigned_bridge_resources() doesn't reconfigure
bridge if it's not necessary.
2. make SCSI_SCAN_ASYNC job wait till hotplug is finished for all slots on the bridge or somehow restart the job if it fails
3. any other ideas?

1st reported: https://lore.kernel.org/r/[email protected]

Igor Mammedov (2):
PCI: acpiphp: enable slot only if it hasn't been enabled already
PCI: acpiphp: slowdown hotplug if hotplugging multiple devices at a
time

 drivers/pci/hotplug/acpiphp_glue.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
Signature · 1 line
2.39.3