sheepdog: Use bdrv_coroutine_enter before BDRV_POLL_WHILE
commit76296dff97864ebb15fa65cc56a6f890ee0c5a28
authorFam Zheng <famz@redhat.com>
Tue, 11 Apr 2017 11:43:52 +0000 (11 19:43 +0800)
committerFam Zheng <famz@redhat.com>
Tue, 11 Apr 2017 12:07:15 +0000 (11 20:07 +0800)
treeec6ce58ff71332901a8ab5957c5221c66440a9ac
parent49ca6259131c6b0555845fcac3e34467c8ac37eb
sheepdog: Use bdrv_coroutine_enter before BDRV_POLL_WHILE

When called from main thread, the coroutine should run in the context of
bs. Use bdrv_coroutine_enter to ensure that.

Signed-off-by: Fam Zheng <famz@redhat.com>
block/sheepdog.c