aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2024-10-22 15:48:47 -0700
committerBjorn Helgaas <[email protected]>2024-11-11 13:05:50 -0600
commit93093ea1f05928b123dae38b710631362bef1601 (patch)
treed4878a521c9687541a9b9c69da0e4ed8c70434b7 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
PCI: Make pci_stop_dev() concurrent safe
Use the atomic ADDED flag to ensure concurrent callers can't attempt to stop the device multiple times. Callers should currently all be holding the pci_rescan_remove_lock, so there shouldn't be an existing race. But that global lock can cause lock dependency issues, so this is preparing to reduce reliance on that lock by using the existing existing atomic bit ops. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Keith Busch <[email protected]> [bhelgaas: squash https://lore.kernel.org/r/[email protected]] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions