Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2849308imb; Mon, 4 Mar 2019 16:11:22 -0800 (PST) X-Google-Smtp-Source: APXvYqwHuhS3eI8vWKE/7shONC9Bn/Mzyr9dXEga9s995QzwgHkKmbwE1Sw5B2w42HcqYT2XEPh1 X-Received: by 2002:a17:902:ab95:: with SMTP id f21mr12374631plr.188.1551744682091; Mon, 04 Mar 2019 16:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551744682; cv=none; d=google.com; s=arc-20160816; b=xppcNyXv12FcW2Y6AEHO0dMOyua4LGy/cdG7WjFGDJ0hGANior7F1NG+1nRCUSXpAI ObJ5QH0rW7Dnxy0yX0VjYbok9gQlFGOVIBBd4pWlT+YruDd5BSV6HKPkWzzqM+7jpvFW s/7x1C1yi1g/POahxHFLnT6sVZA03eeTT8ZsUV4y7iNs3YBJw8uIpVpoGXXCcYFLKaDv JVGRd1RK6lwNOaSqIdBdDhQMlWo1lISnlQ4yWNLPao1fgE+eVH8loQzsOc3ly0vdJUdu snGkddz+0OPaDpBoE7lBaGvhNDXZk6ihugTeqeV6aQ8YOjjudZUBtqtJ+NPrBN0FA3dX EX/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=72GWRNqOh5qyyx3euh7itCKu/RscHoI6zso0EM2GEn8=; b=k8LNhxo3ZD1mt8MtO/gtqNkEIxBsKfp8R083rwEZKZEIjIlaXsVJWlZBG3W6PUXUQz C7TpVcQU6IFyKkPe4ftxMk/77ejNfzMMsv68FQcG0mRbxE3Far2YEWLCqR76zSFdfX2m qBLRj4UyclnUxH80hXQ4jbsA//TFTfQn5cv7QeeQ18lANmWfUQxduMC0xpFv0HWhinxF tf1KohA1ZHmMaqDSz0RHFt++x53FQh5caAMhN860fl6MQcoj9sOVt4QeyEMQRK5NPGnU HEGgnwFjsl+doqiA/UqPAuCSuhCX/OPtcG2UBkF/vJznaOmpivUtPJGjEDyulFz5SU5K +/Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=UpiJ55Oz; 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 o3si3217141pld.336.2019.03.04.16.11.06; Mon, 04 Mar 2019 16:11:22 -0800 (PST) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=UpiJ55Oz; 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 S1726896AbfCEAJo (ORCPT + 99 others); Mon, 4 Mar 2019 19:09:44 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42929 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfCEAJn (ORCPT ); Mon, 4 Mar 2019 19:09:43 -0500 Received: by mail-lj1-f195.google.com with SMTP id d14so5950655ljl.9 for ; Mon, 04 Mar 2019 16:09:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=72GWRNqOh5qyyx3euh7itCKu/RscHoI6zso0EM2GEn8=; b=UpiJ55Oz84LMiaSa2Cr5VdzTZMwbdFbWYKowWFLKI8VuBoyWpotg3GaNMf/ueBBkWz NSwNaWLhYeMRNmHmnzYlSk4TtLhK7WobrAsBtw3VeIQuaQfN1EdiANFusmuIpwHHR6DY 3LAgr7WocqD0R2V+AFKPFwrpM5oW3970+fEMQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=72GWRNqOh5qyyx3euh7itCKu/RscHoI6zso0EM2GEn8=; b=lOdZtwf63XfNVzXSRU6qUjtTBgfPSgmdMOTuj69GEUwmn4xm0q5CAhIBbnu51d8mfq 8Qv/MgJvbDcAFUbPnKbLbxRb8yDM4gReLINjLCHGlZfykLdyVWvYCimp8gsdWxJpx5Tk 2T7dd+aaejiGdJIJKjhMWzoVKrEfASFvaoEAo0qmqrVPPXAu8p7DeWoYAL0k0pzXK7OP z6MJd6YAk2Yl8fU3dJ2ZfTo9rY2QapPukG4VXapAyLywTc33t2/eLuybnJ40SyMRNdc7 RFHuOeruqovd0yKNaNHySel+NPMSHMbRvTJvqFaxGfPz93Q7a3Ydxb2UPWSctXZwk+ls dctg== X-Gm-Message-State: APjAAAUCqr/8+5HQktEXwuuJlLe4uOzafHv59/TehdLaNZbC2/hhFfG4 iOzs0jJTF3TpbJ6RT/SjqDlCcoADoPo= X-Received: by 2002:a2e:89c1:: with SMTP id c1mr11750651ljk.187.1551744580958; Mon, 04 Mar 2019 16:09:40 -0800 (PST) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id b64sm1755435ljf.82.2019.03.04.16.09.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 16:09:38 -0800 (PST) Received: by mail-lj1-f179.google.com with SMTP id d14so5950569ljl.9 for ; Mon, 04 Mar 2019 16:09:38 -0800 (PST) X-Received: by 2002:a2e:9117:: with SMTP id m23mr11899099ljg.94.1551744578190; Mon, 04 Mar 2019 16:09:38 -0800 (PST) MIME-Version: 1.0 References: <20190207154519.8635-1-kaslevs@vmware.com> <20190213094445.1774f959@gandalf.local.home> <20190219121212.6c46b979@gandalf.local.home> <20190304105836.33f80dc3@gandalf.local.home> In-Reply-To: From: Linus Torvalds Date: Mon, 4 Mar 2019 16:09:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] fs: Make splice() and tee() take into account O_NONBLOCK flag on pipes To: Steven Rostedt Cc: Alexander Viro , Jens Axboe , Slavomir Kaslev , linux-fsdevel , Linux List Kernel Mailing , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 4, 2019 at 4:04 PM Linus Torvalds wrote: > > Of course, if it turns out that this breaks something that assumes > that splice blocks purely based on the SPLICE_F_NONBLOCK flag, we'll > have to revert it. Looking at the history of splice, it does look like > it has always ignored O_NONBLOCK. Note that the "arguably buggy" argument is not an actual real argument in the presence of regressions. It's more a "I wish reality wasn't that way" argument, but it doesn't actually _change_ reality. Of course, in the case of sendfile() (which is where that comment is), I don't think we ever really even tested it either way. Linus