From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWs6h-0008CT-6n for qemu-devel@nongnu.org; Tue, 01 Sep 2015 16:24:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWs6d-0008Gs-FW for qemu-devel@nongnu.org; Tue, 01 Sep 2015 16:24:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWs6d-0008Gd-Az for qemu-devel@nongnu.org; Tue, 01 Sep 2015 16:24:35 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id E7E1491C03 for ; Tue, 1 Sep 2015 20:24:34 +0000 (UTC) References: <1439408763-12785-1-git-send-email-marcandre.lureau@redhat.com> <1439408763-12785-3-git-send-email-marcandre.lureau@redhat.com> From: Eric Blake Message-ID: <55E60981.9050300@redhat.com> Date: Tue, 1 Sep 2015 14:24:33 -0600 MIME-Version: 1.0 In-Reply-To: <1439408763-12785-3-git-send-email-marcandre.lureau@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U16KnNnR7cr4v1uuE2utpTTaSe8RVJxkM" Subject: Re: [Qemu-devel] [RFC 2/3] monitor: throttle QAPI_EVENT_VSERPORT_CHANGE by "id" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Cc: lersek@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --U16KnNnR7cr4v1uuE2utpTTaSe8RVJxkM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/12/2015 01:46 PM, marcandre.lureau@redhat.com wrote: > From: Marc-Andr=C3=A9 Lureau >=20 > Use a hash table to lookup the pending event corresponding to the "id" > field. The hash table may grow without limit here, the following patch > will add some cleaning. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > monitor.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++--------= -------- > 1 file changed, 78 insertions(+), 26 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --U16KnNnR7cr4v1uuE2utpTTaSe8RVJxkM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJV5gmCAAoJEKeha0olJ0NqNtAIALDrKaNVUZKrB8TGVKPDEnDT 7DIVXGlan7nYcaSIsR2Yry+6jf83E/M+EV61UFdJvAhAwF4W44oncpN/rN4oVP6R CQ/MUdopeG3zLDgeTDuZBOO4AUWobKpfsUdlO5fqTpNvpQ2Q2eFhyfNOzlUnud+3 lM3mUCK80UFQrUzvvsAzU301NPQHYpJiLz5uH+d4xZTwCQblMqlcwboJUOr5r4Km C0eb7r9Ihbxy/XDc9A0CBSAG3aRedOg9KaiDPWszSUNXejD2Fg3g/yiTSgciCe3V RcL77RoYsu4vJshnXr0hHsUd+HbkFvujjPBoQh/qAVgLCxLk/yrc3TCYQwdayts= =sbKh -----END PGP SIGNATURE----- --U16KnNnR7cr4v1uuE2utpTTaSe8RVJxkM--