From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaQMV-0001jW-Bv for qemu-devel@nongnu.org; Tue, 24 Mar 2015 11:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YaQMP-0003fj-KP for qemu-devel@nongnu.org; Tue, 24 Mar 2015 11:03:23 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:37591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YaQMP-0003fc-En for qemu-devel@nongnu.org; Tue, 24 Mar 2015 11:03:17 -0400 Received: by wixw10 with SMTP id w10so98891918wix.0 for ; Tue, 24 Mar 2015 08:03:16 -0700 (PDT) Date: Tue, 24 Mar 2015 15:03:14 +0000 From: Stefan Hajnoczi Message-ID: <20150324150314.GE1493@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FN+gV9K+162wdwwF" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 1/6] throttle: Extract timers from ThrottleState into a separate 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 --FN+gV9K+162wdwwF Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 10, 2015 at 05:30:45PM +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 > context. >=20 > Timers are tied to their aio context so they must go out of the > ThrottleState structure. >=20 > This commit paves the way for each bs of a common ThrottleState to > have its 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 --FN+gV9K+162wdwwF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVEXyyAAoJEJykq7OBq3PIsIgH/2QxRW/8nnjRZ1DBJTBKzn8X EJmzypM9O4MY0SLvMg18O+wvKXfjR6Eh2yA97L/vKqGhoRLMSopf4++BTgE9BCcI 3MnDjtNSvi1jaqsKPxim51iQ99xhzqCpWp49P0uQhMqOnm19PteLJtUgGR5yeNgP v2DJ4Q9HicVqSyPX2Jfkf/ILso1ZL6ErHI3YqJi/jkuRk4AsCI3IAEUO0ZAOehxr 7gUrmWMKUp741pA5EIbXCxKvt6D9z0NuAk6lFGEze+l7VDPaJAsWDn0Wqa/CrK19 i5Js0QbAWzlfaUzCG1R1o83BvOylV7u5tfEUDOKyI8yJm4+zj3+RBIPYqJ4e9PQ= =t4FG -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF--