qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] block: fix bdrv_read_unthrottled()


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] block: fix bdrv_read_unthrottled()
Date: Fri, 19 Jul 2013 11:14:56 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 18.07.2013 um 10:37 hat Peter Lieven geschrieben:
> Signed-off-by: Peter Lieven <address@hidden>
> ---
>  block.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block.c b/block.c
> index b560241..c7f0197 100644
> --- a/block.c
> +++ b/block.c
> @@ -2250,7 +2250,7 @@ int bdrv_read_unthrottled(BlockDriverState *bs, int64_t 
> sector_num,
>  
>      enabled = bs->io_limits_enabled;
>      bs->io_limits_enabled = false;
> -    ret = bdrv_read(bs, 0, buf, 1);
> +    ret = bdrv_read(bs, sector_num, buf, nb_sectors);
>      bs->io_limits_enabled = enabled;
>      return ret;
>  }

Reviewed-by: Kevin Wolf <address@hidden>

The commit message would have deserved a comment about the impact. The
only caller is passing 0 as sector_num and 1 as nb_sectors, so this
doesn't change the behaviour in practice. (Which is the reason why it's
not for qemu-stable.)

Kevin



reply via email to

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