Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp7859pja; Fri, 22 Nov 2019 02:43:18 -0800 (PST) X-Google-Smtp-Source: APXvYqy8lnCDaoX3W3NjbEThmJSGh+t864PaLwoPfPbWM6MGCHOE3oAHgcvwT193YRelYSUA1TiV X-Received: by 2002:aa7:d842:: with SMTP id f2mr216921eds.262.1574419398088; Fri, 22 Nov 2019 02:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574419398; cv=none; d=google.com; s=arc-20160816; b=eRf+FcuVAh7f6ocXa+WaduJaTfv4uAd9XQGAhYuoxquzIFnwkzvxF3FjRLAJ3F9UoN 9w8H66wmKL0fLMbnHDdEhmYZIUzck3Fq7ORYkcjRfsBtRBUa8qxgOlW2nymEaVpZn74o XyXakoO7HytAABUMhcIqQ/H4jSsyzx/hE7x4sG39DJrquVmQBwBrtWl/2Lr3v6YTpQof JCt4tY9Ws769sR0qIyK5NVp+boGxiEHfeL6Lfk/8nQSnM2Kmunz9plUniuVyHXMQICAQ 4n3IrsEkSpEayZkHm1tIB/hClpTmuhPPRkCCbVBctqIVOP+1QV3jv5+UN/jJaIdCF9uu xUlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=1WeVEuiMEOA63EJ5ybTpiw546CRhWnQMixa/5pLoa3Y=; b=smw6RmIFbLugjjOhCMiMi+YJguEh+Hq8yQgeoMq8ikuuKaMbQCtSPeKGMYp6XT+GEh uqX1DjBp4vnausbCLVGWxHvqRBmrpNLWnut1PXyRA2thkRj5hTGJKR6rcOYok1wA/Reb qG+kvUrHkVVav5F70QODTQKcWBBv+zMCzU4cun0eWyHoUMyrtcPS/Lr0NK0bZ7y79aoz suMl4NDMgtsgboFSTQwp+I1zeaLaXb/1fMaRp5zbwvGst3Enfiy/bZdvhqHo0YiiWPa+ HL+dsSys+Y4utekWqZ3LjL7h57YNk46C165Yqu1rk1E+dtXmXz0buV6Tbe0g0xRajk+t fRRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 mh20si617693ejb.268.2019.11.22.02.42.41; Fri, 22 Nov 2019 02:43:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728991AbfKVKlR (ORCPT + 99 others); Fri, 22 Nov 2019 05:41:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:60100 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728988AbfKVKlQ (ORCPT ); Fri, 22 Nov 2019 05:41:16 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3A854B3F4; Fri, 22 Nov 2019 10:41:15 +0000 (UTC) Date: Fri, 22 Nov 2019 11:41:12 +0100 From: Petr Vorel To: Calum Mackay Cc: Olga Kornievskaia , trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v2] NFS: allow deprecation of NFS UDP protocol Message-ID: <20191122104112.GB24235@dell5510> Reply-To: Petr Vorel References: <20191121160651.5317-1-olga.kornievskaia@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Olga, Calum, ... > > +config NFS_DISABLE_UDP_SUPPORT > > + bool "NFS: Disable NFS UDP protocol support" > > + depends on NFS_FS > > + default y > > + help > > + Choose Y here to disable the use of NFS over UDP. NFS over UDP > > + on modern networks (1Gb+) can lead to data corruption caused by > > + fragmentation during high loads. > > + The default is N because many deployments still use UDP. > You've changed the default to 'y' for v2, but you've left in the 'N' > comment. +1 > > diff --git a/fs/nfs/client.c b/fs/nfs/client.c > > index 02110a3..24ca314 100644 > > --- a/fs/nfs/client.c > > +++ b/fs/nfs/client.c > > @@ -474,6 +474,7 @@ void nfs_init_timeout_values(struct rpc_timeout *to, int proto, > > to->to_maxval = to->to_initval; > > to->to_exponential = 0; > > break; > > +#ifdef CONFIG_NFS_DISABLE_UDP_SUPPORT > > case XPRT_TRANSPORT_UDP: > > if (retrans == NFS_UNSPEC_RETRANS) > > to->to_retries = NFS_DEF_UDP_RETRANS; > > @@ -484,6 +485,7 @@ void nfs_init_timeout_values(struct rpc_timeout *to, int proto, > > to->to_maxval = NFS_MAX_UDP_TIMEOUT; > > to->to_exponential = 1; > > break; > > +#endif > Should the first two of your added ifdefs be ifndefs? +1 ... Other changes LGTM. Kind regards, Petr