Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1566205ybg; Thu, 11 Jun 2020 13:14:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm9YCs/X5ukfVjPtzHsL6up/ksLLnGLn0L0LoPth6UptXQllYmyMqxhQwhSTVgRCPlPQX/ X-Received: by 2002:a05:6402:b31:: with SMTP id bo17mr8791822edb.152.1591906450475; Thu, 11 Jun 2020 13:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591906450; cv=none; d=google.com; s=arc-20160816; b=pM4pv+v/Db75yvIjxRtsE9BI3Yy9+v9BkdksKDZo6aYs3WH8lCqXJjKK1EACFvZwB1 QY1q7mhVyogIEPd3bRydkUPG2nPxOtpLtHwYTKHibBQyoKsxsBysJYI4I+7wgTDAp7QA M+uER0uQqE3szNbI9DhyjVWnwdC9K4SSYQizsvAzKc8b/yPvfSH86rkg0mXdDjdM1VcI 2L5DY79CSja5KfTYLV6p3s8nFke2xwAjs1ilUOzkmPNcKlODu5BKHD9XA6u5dU3G3YeO +6k3500RfTosidXYQHTUKzqDtT2vPlpgjxOKxaGRuT4HdHtk63XMCisme72KqXUUeXP0 F30g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=Q/rFraAIY/GSyzNjg2eQCJ3iKmz+24g3wLWGz0pLVTc=; b=Hg8hpMW1iSLZTNaHMqotdbbhgLbHPliHvFx2ZJ/b7Q8xgM7rRM741jZM+C/re5JfOK nHO2RUDX6DQlmRaMxoIEUxtjVdh7iET+b7/4L+JKbsgeJU271jHGMLXO0iWHeSxX2yBA iE10w0Z/8u1px4XeLsp5cS2jv5e2HUZVw7WYbAYDMve9g3XR1RHbgWKxD0Kf8m758/C2 pjNxi0Za3sDRl8Z/Qn6ACdSYbnSFOL2xK3+qC+/AanCGGRCXU0pb5+i5S7MD5mBopuRE n4u7ic/2AJ4m9G6TVkCl7Fu4wK0CrmXWsvDfn+ae/JQc5px+KXorvL8U+oYZINLGAr6M WDJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 b10si2147280edj.94.2020.06.11.13.13.37; Thu, 11 Jun 2020 13:14:10 -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; 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 S1726331AbgFKUMS (ORCPT + 99 others); Thu, 11 Jun 2020 16:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgFKUMR (ORCPT ); Thu, 11 Jun 2020 16:12:17 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00::f03c:91ff:fe50:41d6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF64C08C5C1 for ; Thu, 11 Jun 2020 13:09:20 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id E6A14793C; Thu, 11 Jun 2020 16:09:19 -0400 (EDT) Date: Thu, 11 Jun 2020 16:09:19 -0400 To: "Schumaker, Anna" Cc: "olga.kornievskaia@gmail.com" , "trondmy@hammerspace.com" , "linux-nfs@vger.kernel.org" , steved@redhat.com Subject: Re: [PATCH 1/1] NFSv4.0 allow nconnect for v4.0 Message-ID: <20200611200919.GF16376@fieldses.org> References: <20200116190857.26026-1-olga.kornievskaia@gmail.com> <1f3297c1549ad12d47497cd18d2c0d9bc7bc5fe7.camel@netapp.com> <803ff52e7e4fd7c2b2965368f8cd203b0da28f49.camel@hammerspace.com> <14cad1ec0a9080ce2ac064ff9a7ae76464e09aee.camel@netapp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14cad1ec0a9080ce2ac064ff9a7ae76464e09aee.camel@netapp.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Jan 17, 2020 at 09:16:54PM +0000, Schumaker, Anna wrote: > On Fri, 2020-01-17 at 21:14 +0000, Trond Myklebust wrote: > > On Fri, 2020-01-17 at 21:09 +0000, Schumaker, Anna wrote: > > > Hi Olga, > > > > > > On Thu, 2020-01-16 at 14:08 -0500, Olga Kornievskaia wrote: > > > > From: Olga Kornievskaia > > > > > > Have you done any testing with nconnect and the v4.0 replay caches? I > > > did some > > > digging on the mailing list and found this in one of the cover > > > letters from > > > Trond: "The feature is only enabled for NFSv4.1 and NFSv4.2 for now; > > > I don't > > > feel comfortable subjecting NFSv3/v4 replay caches to this treatment > > > yet." > > > > > > > That comment should be considered obsolete. The current code works hard > > to ensure that we replay using the same connection (or at least the > > same source/dest IP+ports) so that NFSv3/v4.0 DRCs work as expected. > > For that reason we've had NFSv3 support since the feature was merged. > > The NFSv4.0 support was just forgotten. > > Thanks for the explanation! I'll add the patch. What happened to this patch? As far as I can tell, the conclusion of this thread was that it should be applied. --b. > > Anna > > > > > > Thanks, > > > Anna > > > > > > > Signed-off-by: Olga Kornievskaia > > > > --- > > > > fs/nfs/nfs4client.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c > > > > index 460d625..4df3fb0 100644 > > > > --- a/fs/nfs/nfs4client.c > > > > +++ b/fs/nfs/nfs4client.c > > > > @@ -881,7 +881,7 @@ static int nfs4_set_client(struct nfs_server > > > > *server, > > > > > > > > if (minorversion == 0) > > > > __set_bit(NFS_CS_REUSEPORT, &cl_init.init_flags); > > > > - else if (proto == XPRT_TRANSPORT_TCP) > > > > + if (proto == XPRT_TRANSPORT_TCP) > > > > cl_init.nconnect = nconnect; > > > > > > > > if (server->flags & NFS_MOUNT_NORESVPORT) > > -- > > Trond Myklebust > > Linux NFS client maintainer, Hammerspace > > trond.myklebust@hammerspace.com > > > >