Received: from eggs.gnu.org ([2001:4830:134:3::10]:35115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSpIY-0004Yr-6z for qemu-devel@nongnu.org; Tue, 03 Mar 2015 11:03:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSpIT-0000Xi-76 for qemu-devel@nongnu.org; Tue, 03 Mar 2015 11:03:54 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:38741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSpIS-0000Xc-WA for qemu-devel@nongnu.org; Tue, 03 Mar 2015 11:03:49 -0500 Received: by wesw55 with SMTP id w55so40748871wes.5 for ; Tue, 03 Mar 2015 08:03:48 -0800 (PST) Date: Tue, 3 Mar 2015 10:03:44 -0600 From: Stefan Hajnoczi Message-ID: <20150303160344.GC15846@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uXxzq0nDebZQVNAZ" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/9] throttle: Extract timers from ThrottleState into a separate ThrottleTimers structure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel@nongnu.org, =?iso-8859-1?Q?Beno=EEt?= Canet --uXxzq0nDebZQVNAZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 13, 2015 at 06:06:09PM +0200, Alberto Garcia wrote: > From: Beno=EEt Canet >=20 > Group throttling will share ThrottleState between multiple bs. > As a consequence the ThrottleState will be accessed by multiple aio conte= xt. >=20 > Timers are tied to their aio context so they must go out of the ThrottleS= tate structure. >=20 > This commit paves the way for each bs of a common ThrottleState to have i= ts own > timer. >=20 > Signed-off-by: Benoit Canet > Signed-off-by: Alberto Garcia > --- > block.c | 35 ++++++++++++-------- > include/block/block_int.h | 1 + > include/qemu/throttle.h | 38 ++++++++++++++-------- > tests/test-throttle.c | 82 ++++++++++++++++++++++++++---------------= ------ > util/throttle.c | 73 ++++++++++++++++++++++++----------------- > 5 files changed, 135 insertions(+), 94 deletions(-) Reviewed-by: Stefan Hajnoczi --uXxzq0nDebZQVNAZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU9dtgAAoJEJykq7OBq3PI8qkH/2LlZuPicYaqvJZksDeg0wgo iqDDtsJGH4FyzCsf5jW35Q3+PHlt8sgstZZUtQdh+7ISx+azM83yzstvsM/Ip1Bo L3DeDGW/4EJ4uqwcxksoFx9Nsum8SfY+0lb60fDyISXy6rdsYoMcIpyay+VPDu73 TLFGkY9ysMKFutHksGrkFk6VfZQgvphKJItksth1bYtFHnCcnaZVMOSGzAG7ddSA hnh9fTpXvKM4k2KI0dGYFVwg1n0I96UIm2ZZ8iBF3eM63zhod8fsYp+TrNZC0lKS 8VUIiKwQPMsrq1HEMYXDNW6sjFXgPzXRkm/Mzz+zIVV+aY8y4gadZLpqcMH4E4w= =069v -----END PGP SIGNATURE----- --uXxzq0nDebZQVNAZ--