Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2936964pxb; Tue, 19 Jan 2021 09:28:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5SBJBQwVsu3lKCxsaD8qiBRThf3kuUS1z4NSainh4Qjc/1qXSYn0ZPQ9VaHA2tpZIWzOz X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr3725633eju.153.1611077315595; Tue, 19 Jan 2021 09:28:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611077315; cv=none; d=google.com; s=arc-20160816; b=ccsaXg08XZHRs7jnrgeaGKDwo8M4SQBpkZch1ma5fPzJN2Vc5EgH05x1JvnKDoaexb rHWpiiAiBb9/p5769Q6mgzp5KnYdqYvjshC/qDgLf95d5uBgLSaffLZxltM7oD8XPAx/ OnQfBYnASAtib1Zhoazlsxar5vew0FPMY8XZ79GKvdjrQg6NLknOfAHi6FCQ0ZE0MWZ0 JDA3RblI4vhKr+yI+98kCjE2XVobfm57QBVfeQnUBvbH6Uncw4lbvWRXl3/pNctbANt2 6YZFNgyBQGXAIDEbowE6fD+bX3V+jZLitni+94t7DOIJTaXS3ExC+YhyOBk3cwVPRs4z x3qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PSuxKl9i3MviKkXc1tPk1ynw+W/qV9a+NFF8vAhWt1Y=; b=ZlUleEL3wQwOBE92k98IwGm1QbYOspY/aZWqx9rrzViQ6mTPsyV9C9oQygMKJCHRJF 9tg/NRItty+8bXc43R06AO4VThJigvNG8Hgk7oYHJ/1BwfnDA3QVVh3OqLId0ClGZ7Ak vtTnK7F45YGdsYgIitYXmvkBiWLTULHQQYaDQrPgZERxmNf73J4InLuY48vRVHzluHQr Jp+3PMAQsEjPGLzE5x+B4Kqn1A4AK6XRVpZbXOeXeFiBNHASZ1OAwqh6xTTdYkUG59GI kp/YS3TLuiOd1prJudqija4JHlyydQgsSbTYy2qU+VfWwXuurhab+LfyR3gnTyfd64iw JJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=BvEi4TQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 i9si8656eja.115.2021.01.19.09.28.06; Tue, 19 Jan 2021 09:28:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=BvEi4TQR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390855AbhASR0p (ORCPT + 99 others); Tue, 19 Jan 2021 12:26:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390864AbhASR0U (ORCPT ); Tue, 19 Jan 2021 12:26:20 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E093C061575 for ; Tue, 19 Jan 2021 09:25:40 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id o10so30128893lfl.13 for ; Tue, 19 Jan 2021 09:25:39 -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=PSuxKl9i3MviKkXc1tPk1ynw+W/qV9a+NFF8vAhWt1Y=; b=BvEi4TQRn5+15HoGp/+RRlpw3/o46gBl2BWPMovGuq5ET0EnljlKkuuVyP/gR6btg4 i3BBIXx0Fe+Cf6yHXdAahAnr3C3GNvZHK24KUjcs87/8hSYNIN9B6KBJOxAAHSmZEMYT 8sktds61hNSKjE/JVBkCFdCdbN8U1q+kIjuv0= 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=PSuxKl9i3MviKkXc1tPk1ynw+W/qV9a+NFF8vAhWt1Y=; b=LWhxSBIYiSkF9uUnCdOuCRD8jSdYRDxtKCKfLQfC9ElBxvkfMN6EV3iggDRyevOnbp BE2NGUUsnAAk2loaS96RepTH8+fzDnZ8Nos47vPVad0wRJ3orsas64SPpM6g4MOh32xN ZEyzs6K+LXqCQiQ/z6gqnppBFQoZfdsiQcyfcm4LeYh5qTkqVhRFuHNfd6D8qfkfCpny Ot5+/WsmAty6kyeg3uU6osdu0NyzEfgc6SoSbPzJAUf8Q1er6wWaVAPgfBGHtIOA+7oD Xd070wb1K19EfVNJ6L4e4jIx8qXHY9WzWPkn5WBGMXu6ICtZbPO25sc5c87+jxulU+z2 Uqbw== X-Gm-Message-State: AOAM531lbqF0s8Doo362lxZpjoPzodk50M2lCLy0ooeMdcmWCkC4agcJ F+7zwFJixIMgT8dIrUW9l0eNwch9U/0VuQ== X-Received: by 2002:a05:6512:3a8e:: with SMTP id q14mr2104367lfu.209.1611077138316; Tue, 19 Jan 2021 09:25:38 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id q25sm2335609lfd.282.2021.01.19.09.25.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jan 2021 09:25:37 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id o13so30199971lfr.3 for ; Tue, 19 Jan 2021 09:25:37 -0800 (PST) X-Received: by 2002:ac2:420a:: with SMTP id y10mr2222580lfh.377.1611077137003; Tue, 19 Jan 2021 09:25:37 -0800 (PST) MIME-Version: 1.0 References: <20210118081615.GA1397@lst.de> In-Reply-To: From: Linus Torvalds Date: Tue, 19 Jan 2021 09:25:20 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Splicing to/from a tty To: Greg Kroah-Hartman Cc: Christoph Hellwig , Oliver Giles , Linux Kernel Mailing List , Al Viro , Jiri Slaby Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 3:54 AM Greg Kroah-Hartman wrote: > > This looks sane, but I'm still missing what the goal of this is here. > It's nice from a "don't make the ldisc do the userspace copy", point of > view, but what is the next step in order to tie that into splice? I'll cook something up. With this, it should be fairly easy to add both the splice and iov_iter versions, because now it only needs the wrappers in tty_io.c, not for each line discipline. I hope. Let's see.. Linus