v7: Add Max's rev-by in patch 2. Address Max's comments in patch 1: - Fix tail calculation (-1) - Don't shadow variable. - Fix return value of mirror_cow_align. - Reorder a few lines to be clean. - "> 0" => ">= 0" for the return value of bdrv_get_block_status_above.
Patch 1 rewrites mirror_iteration. Patch 2 is a small DRY cleaning up. Fam Zheng (2): mirror: Rewrite mirror_iteration mirror: Add mirror_wait_for_io block/mirror.c | 326 ++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 197 insertions(+), 129 deletions(-) -- 2.4.3