nbd: Increase bs->in_flight during AioContext switch
commit28e0b2d2e13ef7c4dd645b1fd393f52009469803
authorKevin Wolf <kwolf@redhat.com>
Mon, 18 Feb 2019 14:33:08 +0000 (18 15:33 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 25 Feb 2019 14:03:19 +0000 (25 15:03 +0100)
treec0223f2081b5d95e0431ea1a29347c30bffd9972
parentd3bd5b90890f6715bcee38e00745112157dfbe59
nbd: Increase bs->in_flight during AioContext switch

bdrv_drain() must not leave connection_co scheduled, so bs->in_flight
needs to be increased while the coroutine is waiting to be scheduled
in the new AioContext after nbd_client_attach_aio_context().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd-client.c