From patchwork Wed Jul 23 13:17:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 372941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 558B814001A for ; Wed, 23 Jul 2014 23:19:47 +1000 (EST) Received: from localhost ([::1]:44615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9wSP-0008GH-8z for incoming@patchwork.ozlabs.org; Wed, 23 Jul 2014 09:19:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9wQO-00054M-FW for qemu-devel@nongnu.org; Wed, 23 Jul 2014 09:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9wQ9-0002Wc-MZ for qemu-devel@nongnu.org; Wed, 23 Jul 2014 09:17:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9wQ9-0002WK-71 for qemu-devel@nongnu.org; Wed, 23 Jul 2014 09:17:25 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6NDHOqA029986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 23 Jul 2014 09:17:24 -0400 Received: from localhost (ovpn-113-117.phx2.redhat.com [10.3.113.117]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6NDHN4V002478; Wed, 23 Jul 2014 09:17:24 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 23 Jul 2014 09:17:17 -0400 Message-Id: <1406121438-23083-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1406121438-23083-1-git-send-email-lcapitulino@redhat.com> References: <1406121438-23083-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, pbonzini@redhat.com, armbru@redhat.com Subject: [Qemu-devel] [RFC 2/3] QMP: rate limit BLOCK_IO_ERROR X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This event has the same characteristics of the other rate-limited events, mainly we can emit dozens of it. Rate limit it then. Signed-off-by: Luiz Capitulino Reviewed-by: Eric Blake --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 5bc70a6..33abe6c 100644 --- a/monitor.c +++ b/monitor.c @@ -589,6 +589,7 @@ static void monitor_qapi_event_init(void) monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_REPORT_BAD, 1000); monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_FAILURE, 1000); monitor_qapi_event_throttle(QAPI_EVENT_VSERPORT_CHANGE, 1000); + monitor_qapi_event_throttle(QAPI_EVENT_BLOCK_IO_ERROR, 1000); qmp_event_set_func_emit(monitor_qapi_event_queue); }