Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1244934ybk; Thu, 21 May 2020 02:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2zhUF9X5NeFuFwVNmVQSio+VVSt82c7Gbl3lWxDHdHQrPvUonGziriE9X17RxEXa2lFft X-Received: by 2002:a17:906:9157:: with SMTP id y23mr2752595ejw.0.1590052153376; Thu, 21 May 2020 02:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590052153; cv=none; d=google.com; s=arc-20160816; b=XDIJFALxoD9bI1pJqb9UBV4/35ZZa2Iv50+mESj7JWDoEvShlzmiIAcIXvGV/064kB jGtpcLQbvO55kZGllIxKzWhnSaGNYPRDLf+elz6daqGA89U1hPG1bfTUA4wD6NiibtgZ dri5Foq4tZRtrCJDuRSUjm6G9jfLF/CuxhFdFMX2J2c4/d/g1aJHqVvW20rtE9T3o/Jo grE+rlEVkJuUaQkw/PzJQyj5/jFmrnyhChQzk/SV59JkXlR55EcdFI0oOc60Prjojm0x Fg7snRnyhXWZx42fXaT8LCPBhlpJns+Y7buBI8EaQk9qH3JQWDRVOoTBvTS6j2UTxKMz O1Rg== 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:message-id:subject:cc :to:from:date; bh=4g7d6KkYDLHvS2DEDRtBo7CkXualTAD+96oPr3cNWZU=; b=S7SQ1dSWcHK5GG4bmqXLTLs/JuZ9tORRIJ+Un3SI0DoRKYsswvG7GM/zE5LZf9Ze5K Gf5o9B9Diyr04KrWugxtPFQYVtdMYnFy4L3lPV9UJDjPC9g7tmJBnTQhpbnHpwsLLoQl AVsoayd0w+QF8bfRX5TgwNKsPvahlu1qUsgv3LAjgqZTINOW0Jz0N1aq5npxiaTJUEI6 jBE2gazJSDYr6Z1oakqSRF3qktnSjEpgDYm6KiUrBDfAajgwDb4C/E9mpFcMcJPFGIU2 0EvwJVh3jGdWpvvcj57Xodl8bqvnn/Wj3/CViR/v/KivKlPfq1bW7UESyTUWwaHYi1RA xu3w== 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 s14si3117905ejq.37.2020.05.21.02.08.49; Thu, 21 May 2020 02:09:13 -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 S1728764AbgEUJIS (ORCPT + 99 others); Thu, 21 May 2020 05:08:18 -0400 Received: from verein.lst.de ([213.95.11.211]:53789 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728702AbgEUJIS (ORCPT ); Thu, 21 May 2020 05:08:18 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id B08C668BEB; Thu, 21 May 2020 11:08:12 +0200 (CEST) Date: Thu, 21 May 2020 11:08:12 +0200 From: 'Christoph Hellwig' To: David Laight Cc: 'Christoph Hellwig' , Marcelo Ricardo Leitner , David Miller , "kuba@kernel.org" , "edumazet@google.com" , "kuznet@ms2.inr.ac.ru" , "yoshfuji@linux-ipv6.org" , "vyasevich@gmail.com" , "nhorman@tuxdriver.com" , "jmaloy@redhat.com" , "ying.xue@windriver.com" , "drbd-dev@lists.linbit.com" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "target-devel@vger.kernel.org" , "linux-afs@lists.infradead.org" , "linux-cifs@vger.kernel.org" , "cluster-devel@redhat.com" , "ocfs2-devel@oss.oracle.com" , "netdev@vger.kernel.org" , "linux-sctp@vger.kernel.org" , "ceph-devel@vger.kernel.org" , "rds-devel@oss.oracle.com" , "linux-nfs@vger.kernel.org" Subject: Re: [PATCH 31/33] sctp: add sctp_sock_set_nodelay Message-ID: <20200521090812.GA8330@lst.de> References: <20200520195509.2215098-1-hch@lst.de> <20200520195509.2215098-32-hch@lst.de> <20200520231001.GU2491@localhost.localdomain> <20200520.162355.2212209708127373208.davem@davemloft.net> <20200520233913.GV2491@localhost.localdomain> <20200521083442.GA7771@lst.de> <0a6839ab0ba04fcf9b9c92784c9564aa@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a6839ab0ba04fcf9b9c92784c9564aa@AcuMS.aculab.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, May 21, 2020 at 09:06:19AM +0000, David Laight wrote: > > > The comment still applies, though. (re the duplication) > > > > Where do you see duplication? > > The whole thing just doesn't scale. > > As soon as you get to the slightly more complex requests > like SCTP_INITMSG (which should probably be called to > set the required number of data streams) you've either > got replicated code or nested wrappers. None of that is relevant to setting the nodelay option. If you actually read through the series you'd say that whenever there was non-trivial logic it is shared with getopt. However sharing just for purpose of sharing doesn't make sense, so where the kernel API ended up just setting a flag after taking the sock lock I did not opt for it.