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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS 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 33E84C4363D for ; Thu, 24 Sep 2020 12:28:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8C80F221EB for ; Thu, 24 Sep 2020 12:28:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C80F221EB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CD0FC900028; Thu, 24 Sep 2020 08:28:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C80BF900017; Thu, 24 Sep 2020 08:28:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6EA9900028; Thu, 24 Sep 2020 08:28:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 9C6A2900017 for ; Thu, 24 Sep 2020 08:28:17 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 5D6803636 for ; Thu, 24 Sep 2020 12:28:17 +0000 (UTC) X-FDA: 77297882634.12.earth65_3614f1e2715f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 379841801BD6F for ; Thu, 24 Sep 2020 12:28:17 +0000 (UTC) X-HE-Tag: earth65_3614f1e2715f X-Filterd-Recvd-Size: 2177 Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Thu, 24 Sep 2020 12:28:16 +0000 (UTC) Received: by ozlabs.org (Postfix, from userid 1034) id 4BxvTR2YxTz9sV1; Thu, 24 Sep 2020 22:28:10 +1000 (AEST) From: Michael Ellerman To: Nicholas Piggin , "linux-mm @ kvack . org" Cc: "Aneesh Kumar K . V" , linux-kernel@vger.kernel.org, Andrew Morton , Peter Zijlstra , "David S . Miller" , sparclinux@vger.kernel.org, Jens Axboe , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: <20200914045219.3736466-1-npiggin@gmail.com> References: <20200914045219.3736466-1-npiggin@gmail.com> Subject: Re: [PATCH v2 0/4] more mm switching vs TLB shootdown and lazy tlb fixes Message-Id: <160094999385.26280.16775247303184322384.b4-ty@ellerman.id.au> Date: Thu, 24 Sep 2020 22:28:10 +1000 (AEST) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 14 Sep 2020 14:52:15 +1000, Nicholas Piggin wrote: > This is an attempt to fix a few different related issues around > switching mm, TLB flushing, and lazy tlb mm handling. > > This will require all architectures to eventually move to disabling > irqs over activate_mm, but it's possible we could add another arch > call after irqs are re-enabled for those few which can't do their > entire activation with irqs disabled. > > [...] Applied to powerpc/next. [1/4] mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race https://git.kernel.org/powerpc/c/d53c3dfb23c45f7d4f910c3a3ca84bf0a99c6143 [2/4] powerpc: select ARCH_WANT_IRQS_OFF_ACTIVATE_MM https://git.kernel.org/powerpc/c/66acd46080bd9e5ad2be4b0eb1d498d5145d058e [3/4] sparc64: remove mm_cpumask clearing to fix kthread_use_mm race https://git.kernel.org/powerpc/c/bafb056ce27940c9994ea905336aa8f27b4f7275 [4/4] powerpc/64s/radix: Fix mm_cpumask trimming race vs kthread_use_mm https://git.kernel.org/powerpc/c/a665eec0a22e11cdde708c1c256a465ebe768047 cheers