block/mirror: Wait for in-flight op conflicts
commit1181e19a6d6986a08b889a32438d0ceeee9b2ef3
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Jun 2018 18:18:13 +0000 (13 20:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 18 Jun 2018 15:04:53 +0000 (18 17:04 +0200)
treefe329bba6a4a1dc5ec4c58820870a2450ce23490
parent12aa40822daf0ab13059b27b29a83ded43bae3bb
block/mirror: Wait for in-flight op conflicts

This patch makes the mirror code differentiate between simply waiting
for any operation to complete (mirror_wait_for_free_in_flight_slot())
and specifically waiting for all operations touching a certain range of
the virtual disk to complete (mirror_wait_on_conflicts()).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20180613181823.13618-5-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/mirror.c