virtio: ignore corrupted virtqueues rather than spinning.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 3 May 2008 02:50:43 +0000 (21:50 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 May 2008 11:50:43 +0000 (21:50 +1000)
commit5ef827526fc01820a7a80827802e9fad3f34f937
treec41345c6de6ad5b4b4d7071aa46a9e27a773247c
parent886c35fbcf6fb2eee15687efc2d64d99b6ad9a4a
virtio: ignore corrupted virtqueues rather than spinning.

A corrupt virtqueue (caused by the other end screwing up) can have
strange results such as a driver spinning: just bail when we try to
get a buffer from a known-broken queue.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c