From: Alex Williamson Date: Tue, 14 Jan 2014 23:12:55 +0000 (-0700) Subject: vfio-pci: Don't use device_lock around AER interrupt setup X-Git-Tag: v3.14-rc1~100^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3be3a074cf5ba641529d8fdae0e05ca642f23e12;p=pandora-kernel.git vfio-pci: Don't use device_lock around AER interrupt setup device_lock is much too prone to lockups. For instance if we have a pending .remove then device_lock is already held. If userspace attempts to modify AER signaling after that point, a deadlock occurs. eventfd setup/teardown is already protected in vfio with the igate mutex. AER is not a high performance interrupt, so we can also use the same mutex to protect signaling versus setup races. Signed-off-by: Alex Williamson --- Reading git-diff-tree failed