[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>
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 00/14] block jobs: Convert I/O to BlockBackend, Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 03/14] block: Default to enabled write cache in blk_new(), Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 04/14] block: Convert block job core to BlockBackend, Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 05/14] stream: Use BlockBackend for I/O, Kevin Wolf, 2016/05/04
- Re: [Qemu-devel] [PATCH 05/14] stream: Use BlockBackend for I/O,
Max Reitz <=
- [Qemu-devel] [PATCH 06/14] mirror: Allow target that already has a BlockBackend, Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 01/14] block: keep a list of block jobs, Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 08/14] backup: Don't leak BackupBlockJob in error path, Kevin Wolf, 2016/05/04
- [Qemu-devel] [PATCH 02/14] block: Cancel jobs first in bdrv_close_all(), Kevin Wolf, 2016/05/04