vhost: introduce vhost_has_work()
authorJason Wang <jasowang@redhat.com>
Fri, 4 Mar 2016 11:24:51 +0000 (06:24 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 00:18:45 +0000 (02:18 +0200)
commit526d3e7ff515582eaf7cf5d9da2a11bf681204e6
tree0f8cb97f616c8b09c1c8dd90530006581b26a3da
parentfd0e21c31e1e6383af978239d07ced6e4e5d82c3
vhost: introduce vhost_has_work()

This path introduces a helper which can give a hint for whether or not
there's a work queued in the work list. This could be used for busy
polling code to exit the busy loop.

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