Received: by 10.223.185.116 with SMTP id b49csp1810472wrg; Thu, 15 Feb 2018 01:51:09 -0800 (PST) X-Google-Smtp-Source: AH8x226b3KSxKSSLczKetaNDH2vCRh9i6xuwKMgzWy4ZhsjzCPLQ4hde6NC8SqcYlE34NLsJiiCa X-Received: by 2002:a17:902:5a4a:: with SMTP id f10-v6mr2000235plm.308.1518688269431; Thu, 15 Feb 2018 01:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518688269; cv=none; d=google.com; s=arc-20160816; b=ckODpK2+8OiAhdJ8qDL5bch/eUQX77BiuRX6wZxaydSm04nPtUuJiZ0LRBjGYyz0J9 SHmjZfQ/DEJhAU1o3p+OFYzWzgzGD6LpGmFiC7B0VqpMTjr9RgGETWkpsKpsxZfQLgXz xGxqFEqtUxeEVbJ8hIstyIenU4PQuFko0YXOWeAbFNXqiYETYM8gDmuf854Ryn85J3Ii iBugBOddeR4p9Cyl/Kr5zX6HcgeEcVSaffckTZXol3VKDzjmaJhGZBfw1p2dkALKVjLi 9zf7Td4PB4YmRBFkjZaNsK0oHzpyG+3avBPBzEsJrLup9kkzCXVcZyDcFS4IgLOFjdPt m6wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=/Ub0716kAQqUazNI4RW8DYU0/Sgt8blDpR/pY6THGIQ=; b=e0Gb85YEslbRYmBD1Tra+VEGINjDaS1PzY49UJLiX7p2iHtqSLh9lfAXY0j1U6c5bj AG3s2vHz7InOPjBfPhLEW74F/evmWvmQe0N8oirTZsFFmCy6gg+Qvo9VB+b6Baoe/zvx nMkieP7/7s7ecWks3SuMdmoyk0erKlqGTCeGkzp+Jknz1EHGb6eO9PWWM7F5u04R0KRm vhRMZPqiP3Pa9JM+wUgKgdn6AUEhUGT8kphBFSpF/IasQOwJyUM31aBN8DVyJM7zez2F 1tDXH+rPUQASFwuB4L27GVh761f8xJdv+c0+zedUy1kb7pOmggrjpQ7LTjvKr2ZyoXmp Er2g== 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 k82si1176161pfa.134.2018.02.15.01.50.55; Thu, 15 Feb 2018 01:51:09 -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 S1755392AbeBOJtc (ORCPT + 99 others); Thu, 15 Feb 2018 04:49:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:37222 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755338AbeBOJt2 (ORCPT ); Thu, 15 Feb 2018 04:49:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6B6D7AD72; Thu, 15 Feb 2018 09:49:27 +0000 (UTC) Subject: Re: [PATCH v3 1/2] pvcalls-front: introduce a per sock_mapping refcount To: Stefano Stabellini , boris.ostrovsky@oracle.com Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Stefano Stabellini References: <1518632904-20267-1-git-send-email-sstabellini@kernel.org> From: Juergen Gross Message-ID: <22b701d1-6ce1-2b15-f5da-9ad2545641ac@suse.com> Date: Thu, 15 Feb 2018 10:49:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518632904-20267-1-git-send-email-sstabellini@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/02/18 19:28, Stefano Stabellini wrote: > Introduce a per sock_mapping refcount, in addition to the existing > global refcount. Thanks to the sock_mapping refcount, we can safely wait > for it to be 1 in pvcalls_front_release before freeing an active socket, > instead of waiting for the global refcount to be 1. > > Signed-off-by: Stefano Stabellini Acked-by: Juergen Gross Juergen