]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: break out of polling loop on error
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Jun 2010 13:59:59 +0000 (16:59 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 27 Jun 2010 08:52:25 +0000 (11:52 +0300)
commit6c771af2c204af4e7c8ebed21eb5c3554967573d
tree11ec7e455d21285da68fa7db40af07ebf45f9d0e
parent73077ea15c9db60329cc66a775674e691f67624e
vhost: break out of polling loop on error

When ring parsing fails, we currently handle this
as ring empty condition. This means that we enable
kicks and recheck ring empty: if this not empty,
we re-start polling which of course will fail again.

Instead, let's return a negative error code and stop polling.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h