block: Move request tracking to children in copy offloading
commit37aec7d75eb0d035a0db4f2cf9ad8b1b0c10f91b
authorFam Zheng <famz@redhat.com>
Wed, 27 Jun 2018 03:57:52 +0000 (27 11:57 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (29 14:20 +0200)
tree58bf114e805893ec515453f25eb31e3ee294c33f
parent354d930dc6e90e97599459b79c071ff1b93e433b
block: Move request tracking to children in copy offloading

in_flight and tracked requests need to be tracked in every layer during
recursion. For now the only user is qemu-img convert where overlapping
requests and IOThreads don't exist, therefore this change doesn't make
much difference form user point of view, but it is incorrect as part of
the API. Fix it.

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c