Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp618695pxu; Wed, 7 Oct 2020 11:15:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBeyNfOOHsqnVOk0Lp6SQnnuwg3h5KGnwR/2uKwHQRn4uu5mPXFsPwFB9gyihczJBAhBlH X-Received: by 2002:a05:6402:32f:: with SMTP id q15mr4965829edw.230.1602094519737; Wed, 07 Oct 2020 11:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602094519; cv=none; d=google.com; s=arc-20160816; b=Av1ORlEBH5NlXTtiDbUO/6lTdzzepoC0c/jZ5kEt+hpJhPzXAK8r4LBPJO+vFzPI3z IJAROeraBnEUmiokrioaf/RWBHm0XG1vxAtuEfnywZtpu9s30J0cqWWYZnlzyPDaWxai Okf6QFzkYvKSRVAv5/9pes42viDv+Bam0xBHUbvAyeBD1mVOK/pa7JREx75Bgt4cdBEI EdC+wfvhWd/9+JrWwuIkC0+AxPayH9tiDxsQwMzSSMX8OiilNYNMXu4aRPKa7f6krUs8 w2OivL0yEFcay7gT5bRynR/SwlhmZHdymOnE9n5xk1RPJ4ddktkzbWolQQSzoOe1Z0vZ AN1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=nrxYOoncVXqe3+IlGFw2I4p5bu7qITH87IM7JO0LfRU=; b=iZ9cRAScrLPcsS3SXVU77Nsdk5yMcVi2pvKYsVCnP7NaRkSjEyMsICp1trM/YcM1eX ziJYca2d6us9D4A/tBlVhzSJITyKTpxOALWi0FNVBjiXBhqUzisFi+tBHWDMRIxJqLUt 38Q5KIyMtsclPlvKL3d/BSXEb6ojAuTi73p7+fm0FY7jUU2iuxmgfQprH+KLjMuuGhQ6 nTaZ9Qjfv00T5KtgDhFxUdTHsd7YQ7IlTphWXmQfZv8IsNYzcSc13rbVlzvuRqsvQiEH MwPEJHb4Vp9UF/Dm9W4EhMxpwYpCnrVQpABS4xv4BkzhaH/8at/tSMcpz/dhxOMfUSjU qwgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=aCaObLJj; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh11si2097993ejb.676.2020.10.07.11.14.43; Wed, 07 Oct 2020 11:15:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=aCaObLJj; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728092AbgJGRQA (ORCPT + 99 others); Wed, 7 Oct 2020 13:16:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727906AbgJGRQA (ORCPT ); Wed, 7 Oct 2020 13:16:00 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508B3C061755 for ; Wed, 7 Oct 2020 10:16:00 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 736C64F3B; Wed, 7 Oct 2020 13:15:59 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 736C64F3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1602090959; bh=nrxYOoncVXqe3+IlGFw2I4p5bu7qITH87IM7JO0LfRU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aCaObLJjibzFs1kQc9mn+TMf+4MvDzxuMbALFZkqxaUKtR7gc3usCDEzOoWxfJmUD DaJIP+Yr+6ZTQocZkUQyjxlKGVnQy8UzoXVtA3WVCVa3PO+yuonz/kz5e3BmHE34t9 PX25IZ21nLgcXsiwb04CGj+QOhGBEKoXulle204g= Date: Wed, 7 Oct 2020 13:15:59 -0400 From: Bruce Fields To: Trond Myklebust Cc: Chuck Lever , Benjamin Coddington , Olga Kornievskaia , Linux NFS Mailing List Subject: Re: unsharing tcp connections from different NFS mounts Message-ID: <20201007171559.GF23452@fieldses.org> References: <95542179-0C20-4A1F-A835-77E73AD70DB8@redhat.com> <20201007001814.GA5138@fieldses.org> <57E3293C-5C49-4A80-957B-E490E6A9B32E@redhat.com> <5B5CF80C-494A-42D3-8D3F-51C0277D9E1B@redhat.com> <8ED5511E-25DE-4C06-9E26-A1947383C86A@oracle.com> <20201007140502.GC23452@fieldses.org> <85F496CD-9AAC-451C-A224-FCD138BDC591@oracle.com> <20201007160556.GE23452@fieldses.org> <6d9aee613e9fb25509c9317910189ee37a2e4b43.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6d9aee613e9fb25509c9317910189ee37a2e4b43.camel@hammerspace.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Oct 07, 2020 at 12:44:42PM -0400, Trond Myklebust wrote: > The problem that all locks etc are tied to the lease, so if you change > the clientid (and hence change the lease) then you need to ensure that > the client knows to which lease the locks belong, that it is able to > respond appropriately to all delegation recalls, layout recalls, ... > etc. Looks to me like cl_owner_id never actually changes over the lifetime of a mount even if you change nfs4_unique_id. > This need to track things on a per-lease basis is why we have the > struct nfs_client. Things that are tracked on a per-superblock basis > are tracked by the struct nfs_server. > > However all this is moot as long as nobody can explain why we'd want to > do all this. > > As far as I can tell, this thread started with a complaint that > performance suffers when we don't allow setups that hack the client by > pretending that a multi-homed server is actually multiple different > servers. Yeah, honestly I don't understand the details of that case either. (There is one related thing I'm curious about, which is how close we are to keeping clients in different containers completely separate (which we'd need, for example, if we were to ever permit unprivileged nfs mounts). It looks to me like as long as two network namespaces use different client identifiers, the client should keep different state for them already? Or is there more to do there?) --b.