Re: [Qemu-devel] [PATCH v3 07/10] block: Use common req handling for discard

2018-07-10 Thread Kevin Wolf
Am 10.07.2018 um 08:31 hat Fam Zheng geschrieben: > Reuse the new bdrv_co_write_req_prepare/finish helpers. The variation > here is that discard requests don't affect bs->wr_highest_offset, and it > cannot extend the image. > > Signed-off-by: Fam Zheng > --- > block/io.c | 32

[Qemu-devel] [PATCH v3 07/10] block: Use common req handling for discard

2018-07-10 Thread Fam Zheng
Reuse the new bdrv_co_write_req_prepare/finish helpers. The variation here is that discard requests don't affect bs->wr_highest_offset, and it cannot extend the image. Signed-off-by: Fam Zheng --- block/io.c | 32 ++-- 1 file changed, 22 insertions(+), 10