From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45F02C77B75 for ; Fri, 19 May 2023 14:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3REvD+68XSVm9d9IiyOGvIt3B+LA79unhIqz7q4cKLw=; b=P6j5hyTo0IBI/r /PdW47F8OoXwBK7MKRZf+pWnPg9qbGdRVzD8xVN1puT9B5gm3iyzHV/UK1pxIv4grX9YhUBvc3Xfl M+Z1REFwVlDE37obKPFVcuzh7S0vHp6kh97OfqfEw5WSY0JklQYIIMAnunW9cKvt2CnQAK9vMU9W1 WY8/Z4P7Pm1Nd6TpFM5bV8KxIQnwdKF9NQdfUucBb5u8fbivB6n1PfiiBke9v0V6Go8FA51wn5c37 7rHzNFS8c+pnVXAfgmPyHT3HW1UR7KbMViIeQb45P/YsLofR5s+32PzgsD/RvFbY519e3+tpggGZc gw+BS/6zhs6Rv8c4ezPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q01HA-00GVOZ-1b; Fri, 19 May 2023 14:40:12 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q01H8-00GVNo-33 for linux-arm-kernel@bombadil.infradead.org; Fri, 19 May 2023 14:40:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RW8QTHH2Jw8CMnTF4UFRd4OYKTVSzS57uzm3aSetCyg=; b=edpCIZGWe9bzL7ZgMWgbK5ns+5 SRaZDWqt3Yb0pD9TQyXlE15Dy9XgANmyLxFFeapPKBEEXWhVjQ7OuCc2xvs3v6XKKsJDPmIOLZPOI HEAekz0yfkIcTDgKy+0RTHZpH8RVd9ObZpRg5Y6IO+MG0UDgi43DqoUsdTjsz6kbr+5JjzT/GMSDX aLJMK9abezNjIAUOW8Tsomf2Rz7g5dbC1zlxhPW8D7zlGKwuN+q0UGKZFX1dwaMiZ9rsLYJdNZ5Oh 1rmr5i4gl12amq4WFlHjWVMJcQ8Lmud1UH9m1lFUci3bnDmPimJvpcJGkveJQfnEWRw8tpkjTUTFF JiTw9u5w==; Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q00ut-00FvNx-0A for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 14:17:13 +0000 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684505829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RW8QTHH2Jw8CMnTF4UFRd4OYKTVSzS57uzm3aSetCyg=; b=AJ75V+tWrw9L+dGjzf6PMrtheX1Ricc7Om+mvcOCs5nMVM7oBbY/eZKJImkwiWGwtUO5v0 kWFhX0S7Nm33qsunEcnERoxaQ+wrRr4sNVkg8CvH0+NgqBTm3VSSlamlNzuAPKcoFmA05s LXfpO1dp2pRR2d/ke7z2ib10Hqdg+nwfyDRozBNevV3436Mdfhf32qFl7GBKC/0Ui+aDug ae6G6Dr2OzJXK221/3NbD9BdbQdt9sTWHGR00Wnk4U4UqxzW8OQcjhym105ryC9QO5Ke5V 5elX0MatCtOON2LLsZI35a2SdeZm4Q1ivc7l+cT8Q3xqG4HkjuTwng7H7zPZmQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684505829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RW8QTHH2Jw8CMnTF4UFRd4OYKTVSzS57uzm3aSetCyg=; b=jr9EY4bJCdJ6pV7fXy9V86XiRdd+IsJjMm0i0wW+1Pdk0Q9jQr3RP6ZhhGp2xP/Ub8H9qT ezrTAx2dxUANNZAg== To: Baoquan He Cc: "Russell King (Oracle)" , Andrew Morton , linux-mm@kvack.org, Christoph Hellwig , Uladzislau Rezki , Lorenzo Stoakes , Peter Zijlstra , John Ogness , linux-arm-kernel@lists.infradead.org, Mark Rutland , Marc Zyngier , x86@kernel.org Subject: Re: [RFC PATCH 3/3] mm/vmalloc.c: change _vm_unmap_aliases() to do purge firstly In-Reply-To: References: <87zg658fla.ffs@tglx> <87r0rg93z5.ffs@tglx> <87ilcs8zab.ffs@tglx> <87fs7w8z6y.ffs@tglx> <874joc8x7d.ffs@tglx> <87r0rg73wp.ffs@tglx> <87edng6qu8.ffs@tglx> Date: Fri, 19 May 2023 16:17:08 +0200 Message-ID: <87o7mg4d97.ffs@tglx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_151711_329014_B273F49D X-CRM114-Status: UNSURE ( 7.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 19 2023 at 20:03, Baoquan He wrote: > @@ -2245,6 +2260,9 @@ static void _vm_unmap_aliases(unsigned long start, unsigned long end, int flush) > > might_sleep(); > > + mutex_lock(&vmap_purge_lock); > + purge_fragmented_blocks_allcpus(); > + > for_each_possible_cpu(cpu) { That still does TWO iterations over all possible CPUs, while this really could be one. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel