On Mon, Jul 04, 2016 at 03:28:13PM +0300, Denis V. Lunev wrote: > From: Pavel Butsykin <[email protected]> > > For bdrv_pwrite_compressed() it looks like most of the code creating > coroutine is duplicated in bdrv_prwv_co(). So we can just add a flag > (BDRV_REQ_WRITE_COMPRESSED) and use bdrv_prwv_co() as a generic one. > In the end we get coroutine oriented function for write compressed by using > bdrv_co_pwritev/blk_co_pwritev with BDRV_REQ_WRITE_COMPRESSED flag. > > Signed-off-by: Pavel Butsykin <[email protected]> > Signed-off-by: Denis V. Lunev <[email protected]> > CC: Jeff Cody <[email protected]> > CC: Markus Armbruster <[email protected]> > CC: Eric Blake <[email protected]> > CC: John Snow <[email protected]> > CC: Stefan Hajnoczi <[email protected]> > CC: Kevin Wolf <[email protected]> > --- > block/io.c | 57 > ++++++++++++++++++++++++++++++++++------------- > include/block/block.h | 3 ++- > include/block/block_int.h | 3 +++ > qemu-img.c | 2 +- > 4 files changed, 47 insertions(+), 18 deletions(-)
Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
