See patch 1 for the code-based explanation, and patch 2 for a case where this bites in practice.
Max Reitz (2): block/io: Delay decrementing the quiesce_counter iotests: Test cancelling a job and closing the VM block/io.c | 3 ++- tests/qemu-iotests/255 | 54 ++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/255.out | 24 +++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) -- 2.21.0
