qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 05/14] stream: Use BlockBackend for I/O


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH 05/14] stream: Use BlockBackend for I/O
Date: Fri, 13 May 2016 16:03:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 04.05.2016 11:39, Kevin Wolf wrote:
> This changes the streaming block job to use the job's BlockBackend for
> performing the COR reads. job->bs isn't used by the streaming code any
> more afterwards.
> 
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
>  block/block-backend.c          | 15 +++++++++++++++
>  block/io.c                     |  9 ---------
>  block/stream.c                 | 14 ++++++++------
>  include/block/block.h          |  2 --
>  include/sysemu/block-backend.h |  2 ++
>  trace-events                   |  4 +++-
>  6 files changed, 28 insertions(+), 18 deletions(-)

Hm, I don't quite like adding a new sector-based BB function, but
changing *_co_copy_on_readv()'s interface doesn't seem too reasonable at
this point.

And I guess there are some bdrv_* functions in stream_run() for which a
blk_* equivalent exists, so it might have made sense to change those,
too (e.g. bdrv_getlength()).

Anyway:

Reviewed-by: Max Reitz <address@hidden>

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]