dataplane/virtio-blk: check exit conditions before aio_poll()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 11 Apr 2013 15:24:08 +0000 (17:24 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Aug 2013 13:45:34 +0000 (15:45 +0200)
commitbf0da4df83e8af7ec02e3809f3dd30cc0a42e4bc
tree5ac156298a2e13565f877191d1da7e6d6d6276e7
parent88266f5aa70fa71fd5cc20aa4dbeb7a7bd8d2e92
dataplane/virtio-blk: check exit conditions before aio_poll()

Check exit conditions before entering blocking aio_poll().  This is
mainly for consistency since it's unlikely that we are stopping in the
first event loop iteration.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/dataplane/virtio-blk.c