qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 02/12] block-backend: make blk_co_preadv() 64bit


From: Eric Blake
Subject: Re: [PATCH 02/12] block-backend: make blk_co_preadv() 64bit
Date: Wed, 6 Oct 2021 10:17:49 -0500
User-agent: NeoMutt/20210205-815-1dd940

On Wed, Oct 06, 2021 at 03:17:08PM +0200, Vladimir Sementsov-Ogievskiy wrote:
> For both updated functions type of bytes becomes wider, so all callers
> should be OK with it.
> 
> blk_co_preadv() only pass its arguments to blk_do_preadv().
> 
> blk_do_preadv() pass bytes to:
> 
>  - trace_blk_co_preadv, which is updated too
>  - blk_check_byte_request, throttle_group_co_io_limits_intercept,
>    bdrv_co_preadv, which are already int64_t.
> 
> Note that requests exceeding INT_MAX are still restricted by
> blk_check_byte_request().
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>  include/sysemu/block-backend.h | 2 +-
>  block/block-backend.c          | 4 ++--
>  block/trace-events             | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
>

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org




reply via email to

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