Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp55601pxb; Thu, 21 Jan 2021 00:49:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8ZL+rqrp+YSeWYCjALhv/gLpT2Pu32y4s6RASaB8TzixbX024LtETfoj0pYxx0oT7JkYy X-Received: by 2002:aa7:d905:: with SMTP id a5mr10705608edr.78.1611218998113; Thu, 21 Jan 2021 00:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611218998; cv=none; d=google.com; s=arc-20160816; b=QtirmO5zSLFMMd40CFQCzt/e2M5KSCyYtTePxivY5MLS/kDINdjtkxQbKv41gLNuMl v6d/AVI64r3QeuUyCr9H3qzr6826736IwmiTdGi20yKFk4iPxPa7eiUZKLymkiXzXO1V Kc8LJGWjp9ChPGBUEYSS5B6LiAM+cecyZNqXFA7/snR9YuXw6CnZocLrs/4gbDGtlTgx OfxgYMK52eOIEA0bIkP7y3lSL1CjlCpOKb2OkVRf2QdWeDt99C2KJzennh9Yu2xSaIcr eub3MTVNYR8isqjzWXi/kwdk/tXKhI4Ebn+07VHFKupVEeLJno3PlC7iphKcIi/0M5Oy 0sgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ughi33yQ1KrVMBnPRqi6D0ZPclvtS33va1Nemi1XUQI=; b=xEHqnwD1cyN+vcxhPvSUm4TssMEiTKDXOat2bJbVZQsli3zEe/ZnNkHGMl601pNWnM KgSyh1dfEUDecdU7rAf+34jTDiDhAS7z8kSw7xykQcAmcLvirNWMNSY+v1mLnZxH7XBF qp/WwLjJTCRdSaasKhLKB8VL1+2Q1SF5PdXUDydK3RZt/sUkBiECDH4OZVqzKWvDXfuV EEg/xo9yzwlF770YWFDGIqkWdkXY358ReL3wMDtlP6Qv2VLm76ebZAYlAwDVRTxe8XM8 dKIGHgc0EQpjYiegHvfD5+/gITe8SD/jsqFzh6FqJgVvhxGTbN06COeHnj9MuULwo8Zy SVjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="pw/tr8cK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj26si1539673ejb.261.2021.01.21.00.49.33; Thu, 21 Jan 2021 00:49:58 -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=@linuxfoundation.org header.s=korg header.b="pw/tr8cK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728102AbhAUIsM (ORCPT + 99 others); Thu, 21 Jan 2021 03:48:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:59822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727975AbhAUIp1 (ORCPT ); Thu, 21 Jan 2021 03:45:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E75D239CF; Thu, 21 Jan 2021 08:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611218683; bh=sdhfOBU4yNqElkYgqvaCMCLhYYAFwCeX+2JsdASHq9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pw/tr8cKR42V926RFqwcUVOEAIc2fjEqU7PK/dDYzI8svTiVhMhx56AyfDfquDzVE DkVhx1slLHvE6r0b0nb57zTMOdsRTd5zF8gtJU+6pcHPepp5XRkITTzNdpEm0AZFKJ nkgZWwwlwTj6OCAsFmY23uLMquXg+D5m3VI3IK3Y= Date: Thu, 21 Jan 2021 09:44:29 +0100 From: Greg Kroah-Hartman To: Linus Torvalds Cc: Oliver Giles , Robert Karszniewicz , Christoph Hellwig , Linux Kernel Mailing List , Al Viro , Jiri Slaby Subject: Re: tty splice branch (was "Re: Splicing to/from a tty") Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 05:18:36PM -0800, Linus Torvalds wrote: > On Tue, Jan 19, 2021 at 8:44 PM Linus Torvalds > wrote: > > > > I'll come back to this tomorrow and do the line-buffered icanon case > > too (unless pull requests pile up), and then I'll be happy with the > > tty changes, and I think I can submit this series for real to Greg. > > Greg, I don't know how you want to handle this. > > I have a branch with my tty splice patches at > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git tty-splice > > and that now includes doing that "cookie continuation" thing even for > the N_TTY icanon modes. > > It passes my local tests, and I did try a few rather odd things. And > Oliver tested an ealier version without that final commit on his load. > But... > > That tty splice thing is clearly a regression, but it's not like we > have seen a lot of reports of it, so it's clearly a very special > thing. > > End result: I'm leaving it to you to decide how you want to handle it. > You can tell me to just merge it myself as a regression fix, despite > it being fairly late in the 5.11 series. Or you can pull it into your > tty tree for linux-next and 5.12. And we can just plan to backport it > (for 5.10 and 5.11) later when it has had more wide testing. > > Another alternative is to do just that first patch immediately (the > "tty: implement write_iter" one), because that one should be the > simple case that gets sendfile() and splice() working when the > _destination_ is a tty. The "source is a tty" is the much more complex > case that the other patches deal with. Let me do this last thing. I've taken your one patch into my "tty-linus" branch and will go beat on it for a day and then ask you to pull it in for the next 5.11-rc release, and I've taken your full series into my "tty-next" branch so it will get much wider testing in linux-next for a few weeks. If it turns out that we get reports of the "splice/sendfile from a tty", we can always merge them into 5.11 and 5.10 as needed. Thanks for doing this work, greg k-h