From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPWDv-00029y-Dn for qemu-devel@nongnu.org; Wed, 12 Aug 2015 09:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPWDt-0002hE-QW for qemu-devel@nongnu.org; Wed, 12 Aug 2015 09:37:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPWDt-0002h6-DW for qemu-devel@nongnu.org; Wed, 12 Aug 2015 09:37:41 -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 (Postfix) with ESMTPS id 12B838E69E for ; Wed, 12 Aug 2015 13:37:41 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-82.ams2.redhat.com [10.36.112.82]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7CDbETl004849 for ; Wed, 12 Aug 2015 09:37:40 -0400 From: Paolo Bonzini Date: Wed, 12 Aug 2015 15:37:07 +0200 Message-Id: <1439386633-18933-15-git-send-email-pbonzini@redhat.com> In-Reply-To: <1439386633-18933-1-git-send-email-pbonzini@redhat.com> References: <1439386633-18933-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 14/20] qemu-nbd: remove unnecessary qemu_notify_event() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This was needed when qemu-nbd was using qemu_set_fd_handler2. It is not needed anymore now that nbd_update_server_fd_handler is called whenever nbd_can_accept() can change from false to true. nbd_update_server_fd_handler will call qemu_set_fd_handler(), which will call qemu_notify_event(). Reviewed-by: Max Reitz Signed-off-by: Paolo Bonzini --- qemu-nbd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index 5106b80..d9644b2 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -362,7 +362,6 @@ static void nbd_client_closed(NBDClient *client) state = TERMINATE; } nbd_update_server_fd_handler(server_fd); - qemu_notify_event(); nbd_client_put(client); } -- 2.4.3