sheepdog: use BDRV_POLL_WHILE
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Oct 2016 10:48:58 +0000 (12:48 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 28 Oct 2016 13:50:18 +0000 (21:50 +0800)
commitf11672dbc0207cfb0015a2d08e7693b957847cbe
tree16f3eaef0321e011a31590962523c1a80d092bb0
parentd746427aafa5abf7d607d974979c1d15c8ab3c8d
sheepdog: use BDRV_POLL_WHILE

This is important when the sheepdog driver works on a BlockDriverState
that is attached to an I/O thread other than the main thread.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1477565348-5458-11-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/sheepdog.c