This fixes deadlocks when draining a BlockBackend in an iothread that receives new requests at the same time.
Kevin Wolf (2): block: Don't blk_wait_while_drained() in blk_co_preadv/pwritev block: Fix blk->in_flight during blk_wait_while_drained() block/block-backend.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- 2.20.1