diff options
author | Sinan Kaya <[email protected]> | 2018-02-27 14:14:08 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2018-02-27 14:14:08 -0600 |
commit | cb5e0d060fb1f3136e96acecbd4001a7f0cbac94 (patch) | |
tree | 46f762dc4bac69a0ebe122a142780cb38a43cfa1 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 832e4e1f76b8a84991e9db56fdcef1ebce839b8b (diff) |
PCI: Protect restore with device lock to be consistent
Commit b014e96d1abb ("PCI: Protect pci_error_handlers->reset_notify() usage
with device_lock()") added protection around pci_dev_restore() function so
a device-specific remove callback does not cause a race condition with
hotplug.
pci_dev_lock() usage has been forgotten in two places. Add locks for
pci_slot_restore() and moving pci_dev_restore() inside the locks for
pci_try_reset_function().
Signed-off-by: Sinan Kaya <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions