summaryrefslogtreecommitdiff
path: root/drivers/virtio
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2014-03-13 11:23:39 +1030
committerRusty Russell <rusty@rustcorp.com.au>2014-03-13 11:27:56 +1030
commit5261b85e586afe6ebe54e16e0a8acc32fc6d4902 (patch)
tree10ec38ad40d5e80e527b397c9f086d89d7175175 /drivers/virtio
parenta7c58146cf9a782113629021ba5420582fef265e (diff)
downloadlinux-next-5261b85e586afe6ebe54e16e0a8acc32fc6d4902.tar.gz
virtio_blk: don't crash, report error if virtqueue is broken.
A bad implementation of virtio might cause us to mark the virtqueue broken: we'll dev_err() in that case, and the device is useless, but let's not BUG_ON(). ENOMEM or ENOSPC implies the ring is full, and we should try again later (-ENOMEM is documented to happen, but doesn't, as we fall through to ENOSPC). EIO means it's broken. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions