diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2019-02-18 12:46:46 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-03-05 15:20:02 -0600 |
commit | ddefc033eecf23f1e8b81d0663c5db965adf5516 (patch) | |
tree | bef3d114a1d8bf78c65ea5066e000c33e70772d1 /Documentation/hwmon/ftsteutates | |
parent | 20a796a969efe37c2dd38b72538407e544f41de4 (diff) | |
download | linux-ddefc033eecf23f1e8b81d0663c5db965adf5516.tar.bz2 |
PCI: Fix "try" semantics of bus and slot reset
The commit referenced below introduced device locking around save and
restore of state for each device during a PCI bus "try" reset, making it
decidely non-"try" and prone to deadlock in the event that a device is
already locked. Restore __pci_reset_bus() and __pci_reset_slot() to their
advertised locking semantics by pushing the save and restore functions into
the branch where the entire tree is already locked. Extend the helper
function names with "_locked" and update the comment to reflect this
calling requirement.
Fixes: b014e96d1abb ("PCI: Protect pci_error_handlers->reset_notify() usage with device_lock()")
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sinan Kaya <okaya@kernel.org>
Diffstat (limited to 'Documentation/hwmon/ftsteutates')
0 files changed, 0 insertions, 0 deletions