From: Heinz Graalfs Date: Mon, 28 Apr 2014 01:54:05 +0000 (+0930) Subject: virtio_ccw: introduce device_lost in virtio_ccw_device X-Git-Tag: omap-for-v3.16/fixes-against-rc1~46^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e75279c4fb853f42004cbabb6dbf6b23188dc163;p=pandora-kernel.git virtio_ccw: introduce device_lost in virtio_ccw_device When a device is lost, the common I/O layer calls the notification handler with CIO_GONE: In that event, flag device_lost as true. In case the device had been flagged as lost when the remove/offline callbacks are called, call the new virtio_break_device() function prior to invoking device_unregister(). This avoids hangs of I/O triggered via the device unregistration callbacks. Signed-off-by: Heinz Graalfs Reviewed-by: Cornelia Huck Signed-off-by: Rusty Russell --- Reading git-diff-tree failed