Received: from eggs.gnu.org ([2001:4830:134:3::10]:52907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSqJa-0004A8-53 for qemu-devel@nongnu.org; Tue, 03 Mar 2015 12:09:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSqJW-0007Rd-PF for qemu-devel@nongnu.org; Tue, 03 Mar 2015 12:09:02 -0500 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:40957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSqJW-0007RR-J8 for qemu-devel@nongnu.org; Tue, 03 Mar 2015 12:08:58 -0500 Received: by wesx3 with SMTP id x3so41190093wes.7 for ; Tue, 03 Mar 2015 09:08:58 -0800 (PST) Date: Tue, 3 Mar 2015 11:08:53 -0600 From: Stefan Hajnoczi Message-ID: <20150303170853.GF15846@stefanha-thinkpad.redhat.com> References: <0c82eae548bb7d0dfe2e110876f7df9bd4cb3252.1423842044.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A9z/3b/E4MkkD+7G" Content-Disposition: inline In-Reply-To: <0c82eae548bb7d0dfe2e110876f7df9bd4cb3252.1423842044.git.berto@igalia.com> Subject: Re: [Qemu-devel] [PATCH 6/9] throttle: Add a way to fire one of the timers asap like a bottom half 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 --A9z/3b/E4MkkD+7G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 13, 2015 at 06:06:14PM +0200, Alberto Garcia wrote: > diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h > index 69aa7c2..f846e5a 100644 > --- a/include/qemu/throttle.h > +++ b/include/qemu/throttle.h > @@ -127,6 +127,8 @@ bool throttle_schedule_timer(ThrottleState *ts, > bool is_write, > bool *armed); > =20 > +void throttle_fire_timer(ThrottleTimers *tt, bool is_write); > + > void throttle_timer_fired(ThrottleState *ts, bool is_write); > =20 > void throttle_account(ThrottleState *ts, bool is_write, uint64_t size); General feeling when seeing this patch: This is a little weird because suddenly we're dealing directly with ThrottleTimers instead of ThrottleState or ThrottleGroup. Also, it doesn't set any_timers_pending[], maybe that could be a problem. --A9z/3b/E4MkkD+7G Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJU9eqlAAoJEJykq7OBq3PIRPAH/3ts81m+9dLDRGfBkt85Mivb o7wHjmU+c8A0ziQX+ueRB65KcsChrU6vvMfpkw3VIvQY5egxw6QVL6djRHvSpnU1 Hs7DPJDXewLQhoYl8yXDeGuwV5KisyiTEtrQK0g4E3/d1A54TuNwCG6ZucnEwmyB Upl7Ek8szF+LrEQsEjE8DVWqaFpJD1dpYS4CXt/pGdXIpKIARJDgf8p0Uqn5Eq0P +1ba5sGGVO6VbdzJClcDhNAw/Vj/vD3CSPf1P1Zfn2oN6oqJH3VHdnTm/8qxDpnQ 9W+3T30IlTac8pZMpETylOe0p171LkahGRt8mMX4/OAnuRkCdHEDJrxeWmndfcA= =qjcn -----END PGP SIGNATURE----- --A9z/3b/E4MkkD+7G--