From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNdQ-0001kr-9d for qemu-devel@nongnu.org; Mon, 18 May 2015 12:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuNdK-0006DY-26 for qemu-devel@nongnu.org; Mon, 18 May 2015 12:11:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuNdJ-00067E-QY for qemu-devel@nongnu.org; Mon, 18 May 2015 12:11:13 -0400 Date: Mon, 18 May 2015 17:11:08 +0100 From: Stefan Hajnoczi Message-ID: <20150518161108.GD27654@stefanha-thinkpad.redhat.com> References: <1430207220-24458-1-git-send-email-den@openvz.org> <1430207220-24458-4-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+B+y8wtTXqdUj1xM" Content-Disposition: inline In-Reply-To: <1430207220-24458-4-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 03/27] block/parallels: switch to bdrv_read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Kevin Wolf , qemu-devel@nongnu.org, Roman Kagan --+B+y8wtTXqdUj1xM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 28, 2015 at 10:46:36AM +0300, Denis V. Lunev wrote: > From: Roman Kagan >=20 > Switch the .bdrv_read method implementation from using bdrv_pread() to > bdrv_read() on the underlying file, since the latter is subject to i/o > throttling while the former is not. >=20 > Besides, since bdrv_read() operates in sectors rather than bytes, adjust > the helper functions to do so too. >=20 > Signed-off-by: Roman Kagan > Reviewed-by: Denis V. Lunev > Signed-off-by: Denis V. Lunev > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) Reviewed-by: Stefan Hajnoczi --+B+y8wtTXqdUj1xM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVWg8cAAoJEJykq7OBq3PILF4IAIMjAnNKOfkR4CGKY3Fx3qAl mw7rL6+NAzRPjtfFhYw1UNvlFL/tHRQniJVNv99AL2l1uhtr5CgxXgl3I5b+Ai6d NpXMpYlhtScmH1bAgiOuM1e9FJufbriO6YJ/GeWl7+iJyIwWcdTMnNobq7slLWPW 7dg3OwUB3yrE4AUbusOwtSubAkWLBKGYERU+PlUcK0sa61dg/0LgZCU35phvw3Dx zdC/JF1++VsWw+bw+n/AafruBYM9fOHzXvq9kdSGJ9fq+kvZG/gxSwh3BMemtEfD RLfn4ElVBivVyCiSd47pv2kFrNdvbpkdyOo50D6vayZRNLbMQ1zn9jm8VKp4WH4= =xsKX -----END PGP SIGNATURE----- --+B+y8wtTXqdUj1xM--