From patchwork Sat Jun 4 21:05:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 9154949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3134E60221 for ; Sat, 4 Jun 2016 21:06:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 258742824A for ; Sat, 4 Jun 2016 21:06:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A2A528327; Sat, 4 Jun 2016 21:06:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CB3902824A for ; Sat, 4 Jun 2016 21:06:02 +0000 (UTC) Received: from localhost ([::1]:34101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Ild-0000af-TJ for patchwork-qemu-devel@patchwork.kernel.org; Sat, 04 Jun 2016 17:06:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Il8-0000Yz-RG for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9Il6-0006xz-Tw for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:29 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Il6-0006xu-Mx for qemu-devel@nongnu.org; Sat, 04 Jun 2016 17:05:28 -0400 Received: by mail-wm0-x244.google.com with SMTP id a136so7203764wme.0 for ; Sat, 04 Jun 2016 14:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iBt84m/suQdrl6JwBlCI1b5ithNWr1k2FVQBbds+jLo=; b=WocgJNPwHobzGMzgj6tVeccjKamLxOKl2PGnfbFM8yio6yQJhYWaBWo8Gr5n+ncn6V 52R7vq+obiGdJbrWwvNaUQNS0p9I/hbU2S8U5QtUA2gsVnZcdi6S997mXBABwWKhFakS IV4Iu/3VJsWytlaedAmwMcF1LIipDUfstPLqpYflC/ESgpWWnNKN+tuAwT/mxncSBhi2 +1zMccytyqhqlCYd6WVbRWbNR8lsgt/YnG4KMM1gEiQ5k5LIepnHmGkzOHdOpxjYPFjL Wxn+DQGyFSFWPNvQ/djdJ6XINsloKvlJqSETjp/VjP4qvN4Jr/NH4JR/20FQrMcdV1xj lqdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=iBt84m/suQdrl6JwBlCI1b5ithNWr1k2FVQBbds+jLo=; b=a0zM78JLGd5PE/hozhQzMqKvA7rUq29FPW4lukyoZ7Ciwfl+HqeZUVDJKE4m0kwKK/ ssaMTXlp47aZTZHCaarftoWxGkxwTlCE3ctF1FStjdC4dJcmngDbr95MaVq91UG9p86h 5pOO7KENWvje27PH9+OO5ipRH60RrlcgYhd2yyDFWEEHySIaEaoHK0p9WPV+MYzIg1fo mYX9J0X+MQt+3dMTULjScO95A711X42QyzVrzwZ5wJNf5ylmZFr/IslShKOGMybkxDhs 5+wvqC9r3fa8kFUXmqvP0YZHmYUEHxtn3vkmg62TsbqVcqSye3akHZ5I+2DGfm6ydq4Z vyiQ== X-Gm-Message-State: ALyK8tJ1HgM2/pfhtEkSLlKhWxEidsc5NOOn7tVRNs/SIkCMUOu4fngVkb8rSAGHqsjZnw== X-Received: by 10.194.203.37 with SMTP id kn5mr8865580wjc.42.1465074328177; Sat, 04 Jun 2016 14:05:28 -0700 (PDT) Received: from localhost (APoitiers-110-1-1-235.w193-248.abo.wanadoo.fr. [193.248.103.235]) by smtp.gmail.com with ESMTPSA id c4sm12310874wjm.24.2016.06.04.14.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jun 2016 14:05:27 -0700 (PDT) From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Date: Sat, 4 Jun 2016 23:05:17 +0200 Message-Id: <1465074321-22507-3-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465074321-22507-1-git-send-email-marcandre.lureau@redhat.com> References: <1465074321-22507-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PATCH 2/6] vubr: remove unnecessary dispatcher_remove X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , victork@redhat.com, mst@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Marc-André Lureau The call fd is not watched Signed-off-by: Marc-André Lureau --- tests/vhost-user-bridge.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c index 7d548d8..b9bf018 100644 --- a/tests/vhost-user-bridge.c +++ b/tests/vhost-user-bridge.c @@ -975,7 +975,6 @@ vubr_get_vring_base_exec(VubrDev *dev, VhostUserMsg *vmsg) if (dev->vq[index].call_fd != -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); dev->vq[index].call_fd = -1; } if (dev->vq[index].kick_fd != -1) { @@ -1039,7 +1038,6 @@ vubr_set_vring_call_exec(VubrDev *dev, VhostUserMsg *vmsg) if (dev->vq[index].call_fd != -1) { close(dev->vq[index].call_fd); - dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd); } dev->vq[index].call_fd = vmsg->fds[0]; DPRINT("Got call_fd: %d for vq: %d\n", vmsg->fds[0], index);