Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3605309pxv; Mon, 12 Jul 2021 22:46:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMkY42L6n1w8mWz8bci1qAhSI2VXPu5Wu7zb1zf89NQv7BAq6Tr6vqvAksEvt7rhqUdO7O X-Received: by 2002:a92:c791:: with SMTP id c17mr1807536ilk.213.1626155217021; Mon, 12 Jul 2021 22:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626155217; cv=none; d=google.com; s=arc-20160816; b=zRu3uk8FZ6xLo6CDHckQcouxMCEZumbGL7+/Ayem1S0EEkYBQdH4T2NkJ9Cj2gcjTM 71bQ0okIMwPqMYvH7IADR+4MX1KnBcL0NeO+8xSlbVRALc6S9SVN1M0/PqUBeDex3nKL unC3rDE8wF9oVMVw7mDsMzAWdgpgc2n4c+8GdLWTk+mYU7WbcwAkfOv5+FLpf/VY4k2+ +hRVnU31sFtv1ylQIIrddA3gDN42Jmk9n6XcCAisSYVI32PpYTbk8MztXZU7DLop3K6Q h3j6IEHM8h7lKMI13zEpnl7cdWjXLiEMHOm/pucT4MoeK1X9xGaamgW4OJ8GFriJSz0n 7ppA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eeGkO/O3rYhQW6zjQgWKd7eT2V17OptPakXWHpKEMC8=; b=tgfHIGjfy77LY/exMEVbfuUwy277hk9gBGTqOd+G55F25qIKaZP+KoYgH0Nxl0m0k7 O+Ymj8NaQNoN2yydO3vU6gHr7wGSzNABm1iev9eyAmaaioZTBr/Kq7yNMcAbxe1bSnDg qOXH57LC7+3IXa1uLww6xj8Y0fU8ldU5aDiLjjSas8PXsYFTxKKcfMaCrU+bNNrHAXZb O7uXxz0Zgva7CLhCLQ3x12rSYEr3ap1Rr5sv3l0jMssdBtGOu2366OwqvrFe3/JQL0ji Xph9Jv70do3HmQ438oha18aV6AumH4JKfpe2bkM0ibvEyAgSfRmnSwNN7nnCqOpBVkya bWkg== 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 o18si2694398jat.46.2021.07.12.22.46.44; Mon, 12 Jul 2021 22:46:57 -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 S231373AbhGMFtB (ORCPT + 99 others); Tue, 13 Jul 2021 01:49:01 -0400 Received: from verein.lst.de ([213.95.11.211]:57348 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbhGMFtA (ORCPT ); Tue, 13 Jul 2021 01:49:00 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 6DA2F67373; Tue, 13 Jul 2021 07:46:06 +0200 (CEST) Date: Tue, 13 Jul 2021 07:46:06 +0200 From: Christoph Hellwig To: Linus Torvalds Cc: Christoph Hellwig , Andrew Morton , "James E.J. Bottomley" , Russell King , Guo Ren , Thomas Bogendoerfer , Nick Hu , Greentime Hu , Vincent Chen , Helge Deller , Yoshinori Sato , Rich Felker , Geoff Levand , Paul Cercueil , Ulf Hansson , Alex Shi , Linux Kernel Mailing List , Linux ARM , linux-csky@vger.kernel.org, "open list:BROADCOM NVRAM DRIVER" , linux-parisc@vger.kernel.org, Linux-sh list , linux-mmc@vger.kernel.org, linux-scsi , Linux-MM , "open list:DOCUMENTATION" Subject: Re: flush_kernel_dcache_page fixes and removal Message-ID: <20210713054606.GA6036@lst.de> References: <20210712060928.4161649-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 12:24:11PM -0700, Linus Torvalds wrote: > I think architectures that have virtual caches might want to think > about this patch a bit more, but on the whole I can't argue against > the "it's badly documented and misused". > > No sane architecture will care, since dcache will be coherent (there > are more issues on the I$ side, but that's a different issue) Yeah. Once the arch maintainers look it it it might be worth to check if there is optimization potential for pages that are not in highmem and not in the page cache, as most architectures should be able to just do nothing in that case. Either way, I think getting patches 1-4 into 5.14 as bug fixes would be useful, 6 is a trivial cleanup and 5 is something we can chew on for a bit.