From: Alex Williamson Date: Mon, 10 Jun 2013 22:40:57 +0000 (-0600) Subject: vfio-pci: Avoid deadlock on remove X-Git-Tag: v3.11-rc4~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d24cdbfd28b7e0ffecb1e281d73e73c03a57f734;p=pandora-kernel.git vfio-pci: Avoid deadlock on remove If an attempt is made to unbind a device from vfio-pci while that device is in use, the request is blocked until the device becomes unused. Unfortunately, that unbind path still grabs the device_lock, which certain things like __pci_reset_function() also want to take. This means we need to try to acquire the locks ourselves and use the pre-locked version, __pci_reset_function_locked(). Signed-off-by: Alex Williamson --- Reading git-diff-tree failed