Received: by 10.223.185.116 with SMTP id b49csp2934754wrg; Mon, 12 Feb 2018 18:08:45 -0800 (PST) X-Google-Smtp-Source: AH8x224zKMLMb0BxQt5aOw73u7nPUmYJ0nRPy0WqhoDDKPMWZBUjMrloJvdxGJJUvV+vkrshe19z X-Received: by 10.98.162.25 with SMTP id m25mr13063337pff.136.1518487725705; Mon, 12 Feb 2018 18:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518487725; cv=none; d=google.com; s=arc-20160816; b=xEEpt+4bC+yh8QUZpcEbOW2KcD8piMss505IULCgkRgm5JV2E0uI5RLoceREXcKvgD kM+fCtfGz6ItywvnkdQsgRXXc2vSrTwJoDYwUGPtdWdRyMv93gN93QW/Rn6Q8fqX7pNs i0Z6vDP+8hucYAuaI8qcJtd0bNjjbfJcNfn6I2JgiWp0Fab8KLv+t4+yrDLEhgPATDII Ay/CW0El09LyDEcY84E3mA8X8WlWdLyaWicGafPePFj/55TIC8Tc6/Izs5qIT1q16UL1 JsdRm/B5B7y+Kv3N6Ky/rmbNtpCrwfexJ70d1h2hJcqIXVv52nBIWWtmVgsUaQAZvaiD 55YQ== 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:references :message-id:in-reply-to:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=WGhkBLARCuAzScN3rBWT9pMh12LzyMzC+p/3ie25q98=; b=ntoDvwEQHyTNmBidQV1JQtUHEsk1O2hEGcSJ2jQ0+rdcnwSO5+eqZhVEgVb2s7KEmq thk0+2VLcM2mxSNvybDwMgDggV8shcTTe8hRYD91+wh1TQR/w8zKD3Pt+IjHpvgAjH6c /lMpJ+Xl8IaJOHpIy4w/I3PPC1vkiPCDgYJ+PzKkCFZ5Nzzs/o8n9YFxtI94S7FkbcKK EnlQ3+jdFYzca5bPXdDjkdCCmxQY6dzRyQJKlbU12TViGJLS1KJInnCyinArvGDIvdEr A4EH9G3u6ZwM+ipLxIHtZ/lga8/o3ZxaQSXPRaLkonzuZ9OfdxL9rVChNCesENoCWnAY VcgQ== 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 j65si585335pgc.323.2018.02.12.18.08.31; Mon, 12 Feb 2018 18:08:45 -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 S933342AbeBMCHU (ORCPT + 99 others); Mon, 12 Feb 2018 21:07:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:46206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933326AbeBMCHS (ORCPT ); Mon, 12 Feb 2018 21:07:18 -0500 Received: from [172.19.131.79] (unknown [12.130.117.106]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B8E4217B3; Tue, 13 Feb 2018 02:07:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5B8E4217B3 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: Mon, 12 Feb 2018 18:07:09 -0800 (PST) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-X260 To: Juergen Gross cc: Stefano Stabellini , boris.ostrovsky@oracle.com, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Stefano Stabellini Subject: Re: [PATCH 2/2] pvcalls-front: wait for other operations to return when release passive sockets In-Reply-To: Message-ID: References: <1517871107-15349-1-git-send-email-sstabellini@kernel.org> <1517871107-15349-2-git-send-email-sstabellini@kernel.org> 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 On Mon, 12 Feb 2018, Juergen Gross wrote: > On 05/02/18 23:51, Stefano Stabellini wrote: > > Passive sockets can have ongoing operations on them, specifically, we > > have two wait_event_interruptable calls in pvcalls_front_accept. > > > > Add two wake_up calls in pvcalls_front_release, then wait for the > > potential waiters to return and release the sock_mapping refcount. > > > > Signed-off-by: Stefano Stabellini > > Acked-by: Juergen Gross Thanks!