[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block: fix bdrv_read_unthrottled()
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] block: fix bdrv_read_unthrottled() |
Date: |
Thu, 18 Jul 2013 13:02:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
Il 18/07/2013 10:37, Peter Lieven ha scritto:
> 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: Paolo Bonzini <address@hidden>