Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2058356ybg; Thu, 30 Jul 2020 09:17:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQHtAUPLvezGfV6hh1RHQ73kFuJPESJgdgSqxD0TqjFnoR9TrhVbQ7bT851kdsKkVzqEYf X-Received: by 2002:a17:906:33d1:: with SMTP id w17mr3602411eja.68.1596125868889; Thu, 30 Jul 2020 09:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596125868; cv=none; d=google.com; s=arc-20160816; b=IS0Ptj2ncSeQ7wNw6e2Lx94gZQysBOpw9iJu0UPDGeeyp9h8BwhyHL03a7M5eG/bfY QheanyuhJnH7lviWodnWOugs9ZRvDPDK5FNjMXPthhj/pCYJi3Oe/0w6L2IDr7qp5LEG Q/IW4H9aUYHN/XilxEfpq4d1YN7Pn0QL/IHrjUc6B30Qc8LYLoa5b6upyPkQdh5nDmzR 3z+z824/F1LCbc2jUsMunX4xKK0FPQU73eS6OB+XDlfQZO3amvn1MhpS28HQFgRNa3rM vm2Rbppw2yb0ttgWZ0syWpK9QHjoDPIqRb8fYz4ZzE0TtslcFmcbBQCzhchiuIUSSMXh 3jIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IKULXGc7sVWoziFHUgE6ZAt/hzRTtL3zFolz3LS9erk=; b=QiJBo+3CZpxASLDbYJtU2weMcVoC6/Lsx37G6iFOWBzSXHiJEy53MV/audB0Hz1EJd RZWJFf159bxpJrcm6uzLEq2bzj7x/ynlV+6GYDhUC1K5/n+Qd4HaocCWKBNoImGbgqkm 4bYXvD/SVyPJ/uujG1Lt9mr+z5x5QN+j8DuhycSp04B8Am6x6wHLnDX4Kz/whEyUrcic XiFRSoc3n4Xvg+SOuagw4WQ4SQfgxuUDsVJ+fBeM+VS6QKvGkcP5PAmfm2A4vtzjm3+o nXWxL7i+/XDheb6vsU32S0yawLY048X7BZzNbYHXdfgY0e15q3Iy1YqbAslyFLh3idJ0 GF0w== ARC-Authentication-Results: i=1; mx.google.com; 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 dm22si4047330ejc.191.2020.07.30.09.17.26; Thu, 30 Jul 2020 09:17:48 -0700 (PDT) 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; 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 S1729757AbgG3QRP (ORCPT + 99 others); Thu, 30 Jul 2020 12:17:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgG3QRP (ORCPT ); Thu, 30 Jul 2020 12:17:15 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 653D7C061574; Thu, 30 Jul 2020 09:17:15 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1BEr-005l18-1M; Thu, 30 Jul 2020 16:17:01 +0000 Date: Thu, 30 Jul 2020 17:17:01 +0100 From: Al Viro To: Christoph Hellwig Cc: Linus Torvalds , Stephen Rothwell , Luis Chamberlain , Matthew Wilcox , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 22/23] fs: default to generic_file_splice_read for files having ->read_iter Message-ID: <20200730161701.GB1236603@ZenIV.linux.org.uk> References: <20200707174801.4162712-1-hch@lst.de> <20200707174801.4162712-23-hch@lst.de> <20200730000544.GC1236929@ZenIV.linux.org.uk> <20200730070329.GB18653@lst.de> <20200730150826.GA1236603@ZenIV.linux.org.uk> <20200730152046.GA21192@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200730152046.GA21192@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 30, 2020 at 05:20:46PM +0200, Christoph Hellwig wrote: > Fortunately I think the fix is pretty easy - remove the special pipe > zero copy optimization from copy_page_to_iter, and just have the > callers actually want it because they have pagecache or similar > refcountable pages use it explicitly for the ITER_PIPE case. That gives > us a safe default with an opt-in into the optimized variant. I'm > currently auditing all the users of for how it is used and that looks > pretty promising. Huh? What does that have to do with anything?