From: Michael S. Tsirkin Date: Tue, 14 Oct 2014 23:52:33 +0000 (+1030) Subject: virtio_scsi: fix race on device removal X-Git-Tag: fixes-against-v3.18-rc2~57^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e67423c7b4f20c327de533b068907aab33720482;p=pandora-kernel.git virtio_scsi: fix race on device removal We cancel event work on device removal, but an interrupt could trigger immediately after this, and queue it again. To fix, set a flag. Loosely based on patch by Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Michael S. Tsirkin Signed-off-by: Rusty Russell --- Reading git-diff-tree failed