diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2014-01-14 20:45:09 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-15 10:43:17 -0700 |
commit | 890ed578df82f5b7b5a874f9f2fa4f117305df5f (patch) | |
tree | 8105161071fa46a98feea8253f407adb71f1e242 /CREDITS | |
parent | 61cf16d8bd38c3dc52033ea75d5b1f8368514a17 (diff) | |
download | op-kernel-dev-890ed578df82f5b7b5a874f9f2fa4f117305df5f.zip op-kernel-dev-890ed578df82f5b7b5a874f9f2fa4f117305df5f.tar.gz |
vfio-pci: Use pci "try" reset interface
PCI resets will attempt to take the device_lock for any device to be
reset. This is a problem if that lock is already held, for instance
in the device remove path. It's not sufficient to simply kill the
user process or skip the reset if called after .remove as a race could
result in the same deadlock. Instead, we handle all resets as "best
effort" using the PCI "try" reset interfaces. This prevents the user
from being able to induce a deadlock by triggering a reset.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions