block: Use common req handling in copy offloading
commit0eb1e891126f0cde52e88384696ad67076bdc341
authorFam Zheng <famz@redhat.com>
Tue, 10 Jul 2018 06:31:22 +0000 (10 14:31 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Jul 2018 14:46:22 +0000 (10 16:46 +0200)
tree8826035cca884ea86783254e03055544426cce0e
parent00695c27a00a4b3333604aeac50c43269cc151a3
block: Use common req handling in copy offloading

This brings the request handling logic inline with write and discard,
fixing write_gen, resize_cb, dirty bitmaps and image size refreshing.
The last of these issues broke iotest case 222, which is now fixed.

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