mirror: Speed up bitmap initial scanning
commit999006975840f8cdf2038a587d852a6cbfe58e3b
authorFam Zheng <famz@redhat.com>
Thu, 9 Jul 2015 03:47:58 +0000 (9 11:47 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 22 Jul 2015 10:14:21 +0000 (22 11:14 +0100)
tree1a13ecd7f3f16e0e0e9dd68f182e72029d975b3b
parent774ee4772b6838b78741ea52d4bf26b8922244c5
mirror: Speed up bitmap initial scanning

Limiting to sectors_per_chunk for each bdrv_is_allocated_above is slow,
because the underlying protocol driver would issue much more queries
than necessary. We should coalesce the query.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: <1436413678-7114-4-git-send-email-famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c