From: Alex Williamson Date: Mon, 29 Sep 2014 23:18:39 +0000 (-0600) Subject: vfio-pci: Fix remove path locking X-Git-Tag: omap-for-v3.19/prcm-cleanup~121^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93899a679fd6b2534b5c297d9316bae039ebcbe1;p=pandora-kernel.git vfio-pci: Fix remove path locking Locking both the remove() and release() path results in a deadlock that should have been obvious. To fix this we can get and hold the vfio_device reference as we evaluate whether to do a bus/slot reset. This will automatically block any remove() calls, allowing us to remove the explict lock. Fixes 61d792562b53. Signed-off-by: Alex Williamson Cc: stable@vger.kernel.org [3.17] --- Reading git-diff-tree failed