Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEB83C433FE for ; Fri, 3 Sep 2021 20:58:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 954916113C for ; Fri, 3 Sep 2021 20:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242776AbhICU70 (ORCPT ); Fri, 3 Sep 2021 16:59:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:58264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349941AbhICU7U (ORCPT ); Fri, 3 Sep 2021 16:59:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B0A02610FB; Fri, 3 Sep 2021 20:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1630702700; bh=ojgQPRu1PvLkTFhKPo4lUS/J8v143/jdN2Lccbj/rto=; h=Date:From:To:Subject:From; b=Nim7rJMnYcXn38tr0OwbvqDmQ+5Tn77p90nztWAxheFVrfedN/UhTW61qL12fu4qP JHohvAIEeD5iVurGNQWWtKk+bI0343xFAPhzPA2jz9MeLQ7rdHApCt0kKPaxzWO52Q nb7mGhf9pFXT5NruIRPTaHTrhZVJk4rcBSBBf7b8= Date: Fri, 03 Sep 2021 13:58:19 -0700 From: akpm@linux-foundation.org To: alexs@kernel.org, dalias@libc.org, deanbo422@gmail.com, deller@gmx.de, geoff@infradead.org, green.hu@gmail.com, guoren@kernel.org, hch@lst.de, James.Bottomley@HansenPartnership.com, linux@armlinux.org.uk, mm-commits@vger.kernel.org, nickhu@andestech.com, paul@crapouillou.net, torvalds@linux-foundation.org, tsbogend@alpha.franken.de, ulf.hansson@linaro.org, ysato@users.osdn.me Subject: [merged] =?US-ASCII?Q?mmc-jz4740-remove-the-flush=5Fkernel=5Fdcache=5Fpage-call-i?= =?US-ASCII?Q?n-jz4740=5Fmmc=5Fread=5Fdata.patch?= removed from -mm tree Message-ID: <20210903205819._u9KJVNPa%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mmc: JZ4740: remove the flush_kernel_dcache_page call in jz4740_mmc_read_data has been removed from the -mm tree. Its filename was mmc-jz4740-remove-the-flush_kernel_dcache_page-call-in-jz4740_mmc_read_data.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Christoph Hellwig Subject: mmc: JZ4740: remove the flush_kernel_dcache_page call in jz4740_mmc_read_data Patch series "_kernel_dcache_page fixes and removal". While looking to convert the block layer away from kmap_atomic towards kmap_local_page and prefeably the helpers that abstract it away I noticed that a few block drivers directly or implicitly call flush_kernel_dcache_page before kunmapping a page that has been written to. flush_kernel_dcache_page is documented to to be used in such cases, but flush_dcache_page is actually required when the page could be in the page cache and mapped to userspace, which is pretty much always the case when kmapping an arbitrary page. Unfortunately the documentation doesn't exactly make that clear, which lead to this misused. And it turns out that only the copy_strings / copy_string_kernel in the exec code were actually correct users of flush_kernel_dcache_page, which is why I think we should just remove it and eat the very minor overhead in exec rather than confusing poor driver writers. This patch (of 6): MIPS now implements flush_kernel_dcache_page (as an alias to flush_dcache_page). Link: https://lkml.kernel.org/r/20210712060928.4161649-1-hch@lst.de Link: https://lkml.kernel.org/r/20210712060928.4161649-2-hch@lst.de Signed-off-by: Christoph Hellwig Acked-by: Linus Torvalds Cc: "James E.J. Bottomley" Cc: Russell King Cc: Guo Ren Cc: Thomas Bogendoerfer Cc: Nick Hu Cc: Greentime Hu Cc: Vincent Chen Cc: Helge Deller Cc: Yoshinori Sato Cc: Rich Felker Cc: Geoff Levand Cc: Paul Cercueil Cc: Ulf Hansson Cc: Alex Shi Signed-off-by: Andrew Morton --- drivers/mmc/host/jz4740_mmc.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/mmc/host/jz4740_mmc.c~mmc-jz4740-remove-the-flush_kernel_dcache_page-call-in-jz4740_mmc_read_data +++ a/drivers/mmc/host/jz4740_mmc.c @@ -578,10 +578,6 @@ static bool jz4740_mmc_read_data(struct } } data->bytes_xfered += miter->length; - - /* This can go away once MIPS implements - * flush_kernel_dcache_page */ - flush_dcache_page(miter->page); } sg_miter_stop(miter); _ Patches currently in -mm which might be from hch@lst.de are riscv-only-select-generic_ioremap-if-mmu-support-is-enabled.patch mm-move-ioremap_page_range-to-vmallocc.patch mm-dont-allow-executable-ioremap-mappings.patch proc-stop-using-seq_get_buf-in-proc_task_name.patch kernel-unexport-get_mmtask_exe_file.patch mm-unexport-folio_memcg_unlock.patch mm-unexport-unlock_page_memcg.patch