Received: by 10.223.185.116 with SMTP id b49csp1027983wrg; Wed, 14 Feb 2018 10:27:33 -0800 (PST) X-Google-Smtp-Source: AH8x2258vXu3AlRs+uAVzosU9qhyX+1rHwDdnUVLe/JSUxk+CasmvFJt5+NLw6Brrqnp6ztY2/9g X-Received: by 10.98.17.15 with SMTP id z15mr127710pfi.116.1518632853408; Wed, 14 Feb 2018 10:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518632853; cv=none; d=google.com; s=arc-20160816; b=fAaFuSbTlQl05oDiDnOsJPnTBpaGqi1LobdTAOrau2GeBUiDOC8AV7chXJOAtn114T nc/TUWKiQzTaZwrEal8RU/eNiFIcJyZHw5QjnjP1VIi9K9j4xpS6OHuTtGz4x6/TXloo pgqs1IS5bA7X/GCeOfCPgcP8vt9DJ0DbnPye05WyAGhE+0ANUhnTrQ7U9RqEBpuWLuy5 EOrkkuHOVhlg3jAZtk5TTMgP3Rn99TL4k4R1SEXvN4SqUBbivLkwpN8/7iQCTlAtbko+ 458Ssj2A+aaE6OepsZoce1ww5gjPHvYS5Yw5w3Vra+ApyLDi0m4567qKGyeHh69b06cJ wVGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:dmarc-filter:arc-authentication-results; bh=h2T5CoUiAV0bQo/WdDCyGt0L2WunUDfjDV/BbMHHRrk=; b=FrE5s2l6qhbuPs0IVQ1gXCwK/itWwr62Nty2hX6X9kK+yOv91jmn5zx64mPNXRddR9 4mbyY+swM7fI9JUGZMIXSSQ3i8sIk3UFVa7GTzYgBPP2q4wqq1hj1bwgkIMJxWGzt0/c wh6RxtOXWTrJOYZHwJhQZEE0irGWzydhxC8KcGwvQkceBGzF18HA3aGIUFQqjq+jnWGx dv6phB4zWS36nnaWKY5RfVewujS0QK6UbEfB2BW6JQg8FrfzdE6Q+P9Aiy3/XpfiAS/m WmN9JS6k1QOVzemZn8aM/IEOh9ktur8RIclcb9VorSBjsWhpJrT4oG4OuSSA9AfA1H+X axkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2-v6si350729plr.656.2018.02.14.10.27.17; Wed, 14 Feb 2018 10:27:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162039AbeBNS0Q (ORCPT + 99 others); Wed, 14 Feb 2018 13:26:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:41388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161943AbeBNS0O (ORCPT ); Wed, 14 Feb 2018 13:26:14 -0500 Received: from [10.0.0.125] (c-24-4-217-95.hsd1.ca.comcast.net [24.4.217.95]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 13975217C7; Wed, 14 Feb 2018 18:26:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13975217C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sstabellini@kernel.org Date: Wed, 14 Feb 2018 10:26:13 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-X260 To: boris.ostrovsky@oracle.com, jgross@suse.com cc: sstabellini@kernel.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] pvcalls-front improvements Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this small series introduces a per socket refcount to increase the efficiency on socket release operations, and makes releasing passive sockets safe. Cheers, Stefano Changes in v3: - remove pointless initializers - reorder pvcalls_enter_sock Changes in v2: - add acked-by - fix check in pvcalls_enter_soc - fix code style - nicer checks in pvcalls_front_release Stefano Stabellini (2): pvcalls-front: introduce a per sock_mapping refcount pvcalls-front: wait for other operations to return when release passive sockets drivers/xen/pvcalls-front.c | 197 +++++++++++++++++++------------------------- 1 file changed, 85 insertions(+), 112 deletions(-)