Re: [PATCH v2] vfio-pci: Use pci "try" reset interface

2014-01-15 Thread Bjorn Helgaas
On Tue, Jan 14, 2014 at 8:45 PM, Alex Williamson wrote: > 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 rese

[PATCH v2] vfio-pci: Use pci "try" reset interface

2014-01-14 Thread Alex Williamson
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 dead