Re: [Qemu-block] [PATCH v7 3/8] mirror: Do zero write on target if sectors not allocated

2015-11-05 Thread Kevin Wolf
Am 05.11.2015 um 06:42 hat Fam Zheng geschrieben: > On Wed, 11/04 19:35, Kevin Wolf wrote: > > Am 08.06.2015 um 07:56 hat Fam Zheng geschrieben: > > > If guest discards a source cluster, mirroring with bdrv_aio_readv is > > > overkill. > > > Some protocols do zero upon discard, where it's best to

Re: [Qemu-block] [PATCH v7 3/8] mirror: Do zero write on target if sectors not allocated

2015-11-04 Thread Fam Zheng
On Wed, 11/04 19:35, Kevin Wolf wrote: > Am 08.06.2015 um 07:56 hat Fam Zheng geschrieben: > > If guest discards a source cluster, mirroring with bdrv_aio_readv is > > overkill. > > Some protocols do zero upon discard, where it's best to use > > bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard w

Re: [Qemu-block] [PATCH v7 3/8] mirror: Do zero write on target if sectors not allocated

2015-11-04 Thread Kevin Wolf
Am 08.06.2015 um 07:56 hat Fam Zheng geschrieben: > If guest discards a source cluster, mirroring with bdrv_aio_readv is overkill. > Some protocols do zero upon discard, where it's best to use > bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard will be enough. > > Signed-off-by: Fam Zheng > ---

[Qemu-block] [PATCH v7 3/8] mirror: Do zero write on target if sectors not allocated

2015-06-07 Thread Fam Zheng
If guest discards a source cluster, mirroring with bdrv_aio_readv is overkill. Some protocols do zero upon discard, where it's best to use bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard will be enough. Signed-off-by: Fam Zheng --- block/mirror.c | 20 ++-- 1 file changed, 18