From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzlyo-0002O0-OS for qemu-devel@nongnu.org; Thu, 18 Jul 2013 07:02:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uzlyk-0005NO-0M for qemu-devel@nongnu.org; Thu, 18 Jul 2013 07:02:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uzlyj-0005NI-Oa for qemu-devel@nongnu.org; Thu, 18 Jul 2013 07:02:33 -0400 Message-ID: <51E7CB3A.1090101@redhat.com> Date: Thu, 18 Jul 2013 13:02:18 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1374136652-22567-1-git-send-email-pl@kamp.de> In-Reply-To: <1374136652-22567-1-git-send-email-pl@kamp.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block: fix bdrv_read_unthrottled() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Il 18/07/2013 10:37, Peter Lieven ha scritto: > Signed-off-by: Peter Lieven > --- > 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