Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp628515ybb; Thu, 28 Mar 2019 09:05:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPoWYpWZc9i4BXXOEn/1BAuTahNwmX+QuyIxKupFqLoCjfzmrkERgbRV1rGW0Vb9QonnMs X-Received: by 2002:a65:49c4:: with SMTP id t4mr41069128pgs.421.1553789117592; Thu, 28 Mar 2019 09:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553789117; cv=none; d=google.com; s=arc-20160816; b=vq5ExPc0xWR+EummjejvoKuByk0dDS+IkH38KGTbMdSc+O4yXHglxcJeklyMwuyvY4 YEn5yFw0FI3Dd5isSYDiPQfAidvLrESloHp41fu00rGAURpLV5jm8Da4LapQDdZ2sOiy /m80g2rBcSNo42SbSrFKYoxd5L7GbHJdwXDWqtxLRrllV+TMkaH2fi7w6lndcIDTKMYG eaZwzBM0OZqEoBGCCguFkrooouQ3DDeInhfJpVVUsS0WbJQB0yPZLCNcfFA19/S0NWCK 77BbjTzOb+0LMszGya760e9qrLk5UxjIUUcoXBedGsR4qCD3A/D4rmGijqtGWfTM/Bq3 MSGg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=dsK5I6yh5jBhqNgH93l2rrcjUYouiCzKHEmlE4XPfcE=; b=WrGwssRNmtIWW3+RaTdcbJ8eaOc0O1ViIRs2SwsEg5LxneK5gZr2gi/A5rDuM9bZn5 n5VPt+YXlOZ9c9PF3giKhTiHRpTxaeFPcaVI9nYuEMpk1CDefETi+lK5znsHyliQYXnk ebteZEdK6Lf4bS+Jy844ee4ZS7OjLMii6pnXIWPLDBRw7fnqAoHHqIlZ0CCYJiyXkBG3 uoWH/867ew2w5kElhIFf71QV17jYnQYBqgNkg6I59vV4LNrbudPs8DpwNUAWZlZlK8JA ROB4QIKPTNTQuKEQQzgYk4OJ/u+AZhhm91nZQ2kr0Yv4Pr9BMqjIAZMc68ZSXHbwxEM4 G+6w== 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 34si22771113plz.256.2019.03.28.09.04.59; Thu, 28 Mar 2019 09:05:17 -0700 (PDT) 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 S1726557AbfC1QEU (ORCPT + 99 others); Thu, 28 Mar 2019 12:04:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:43440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725816AbfC1QEU (ORCPT ); Thu, 28 Mar 2019 12:04:20 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D07C20823; Thu, 28 Mar 2019 16:04:18 +0000 (UTC) Date: Thu, 28 Mar 2019 12:04:17 -0400 From: Steven Rostedt To: Slavomir Kaslev Cc: "sashal@kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "torvalds@linux-foundation.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH AUTOSEL 4.9 20/87] fs: Make splice() and tee() take into account O_NONBLOCK flag on pipes Message-ID: <20190328120417.36bae781@gandalf.local.home> In-Reply-To: <3c4595fec941c10beaf4bad8df30170b4e950226.camel@vmware.com> References: <20190327182040.17444-1-sashal@kernel.org> <20190327182040.17444-20-sashal@kernel.org> <3c4595fec941c10beaf4bad8df30170b4e950226.camel@vmware.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Mar 2019 15:37:49 +0000 Slavomir Kaslev wrote: > On Wed, 2019-03-27 at 14:19 -0400, Sasha Levin wrote: > > From: Slavomir Kaslev > > > > [ Upstream commit ee5e001196d1345b8fee25925ff5f1d67936081e ] > > > > The current implementation of splice() and tee() ignores O_NONBLOCK > > set > > on pipe file descriptors and checks only the SPLICE_F_NONBLOCK flag > > for > > blocking on pipe arguments. This is inconsistent since splice()-ing > > from/to non-pipe file descriptors does take O_NONBLOCK into > > consideration. > > > > Fix this by promoting O_NONBLOCK, when set on a pipe, to > > SPLICE_F_NONBLOCK. > > Hey Sasha, > > I don't think that this patch should be merged to stable kernels. It's > more of a feature rather than a bug/regression fix and it changes how > splice() has been working from day one. > > Can you please drop it from the stable queues? > On the other hand, it keeps stable more in sync with what mainline has. If someone writes new code against a stable release, and depends on this behavior, it's less likely to break when they run it on a newer kernel. Which means its less likely that Linus will revert your change ;-) -- Steve