Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3201091pxk; Tue, 15 Sep 2020 12:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTVMSX5Tp7oxn5nxllIjzdfhvdJcgsA5gf6kJu5o4ii6CpwcxTj8NbZPW75ZHAmqI0NOfo X-Received: by 2002:a17:906:14c9:: with SMTP id y9mr22840205ejc.523.1600199150831; Tue, 15 Sep 2020 12:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600199150; cv=none; d=google.com; s=arc-20160816; b=zKt1pMdVyCmrugGEs/2oJtPFIXnyednqD7njfwz51/IfrXeFn6GpBTa3948t+rwuCh mxTbw/kmm7dhRkrJO2bL6iccDtV9Yf56uAg6EzDGp0o1b64AbvzhJAY3OHE5c/adxFvw tQDxong1tg2AEvrM1+8sa31qZqh3HdlTyOfwN/AFlbPijjOKKESX3xGvrTl0FyPeLysh s2TC+Uy6qXQq11XWFYVNImPu4CGolPyAdMRm8FitJiuXtV3Im7V9ZUSgNxHTBTD/u5Ok BL9Xd6Mz6A5Mpg/C+9i7GrBv0+4+2BlMnWkAVd5tXhZOJhwkfyBtjGfXR4NMlGoimvlu oL3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=IlPpaP+XAgUZIW9AaaIBeARAvov+Wb7ODzULmCC+HG0=; b=g+qD0TJshL17L1gZyKnHuoTV6Qe8XX7Y94nSShC1Yr7Y4EyBJ/3UTUAbNVH8OHSCAH g377d+heixgtu3BrtU6gTsMENM5ikabcdJ0rPAXsCm3nZS+/c1mzzB/FYBIplnxA2uLL 0m+jRkbJS1l7bPhrHLet/lXGrhjHr8LqOvLEb2VH1p9fm8teO5A0CKi5JhJbQ+O3GDIL EM4+PZ+aprs6bz1Iu5QsK11L8MMcgm5h71fi/xfXQGdaIOUn9E3JaUf7qjt+7iAu5AUE GyYZu4cVdBnqk0DbzlkZqHJ+RRKIPYKB4wf7+YNMl49DwD07eeRyDJzmeQ10lcZvQJJ7 kc6g== 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 n13si9696579ejd.442.2020.09.15.12.45.28; Tue, 15 Sep 2020 12:45:50 -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 S1727683AbgIOTod (ORCPT + 99 others); Tue, 15 Sep 2020 15:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727845AbgIOTnf (ORCPT ); Tue, 15 Sep 2020 15:43:35 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 975C8C06174A; Tue, 15 Sep 2020 12:43:02 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 9299113678364; Tue, 15 Sep 2020 12:26:08 -0700 (PDT) Date: Tue, 15 Sep 2020 12:42:54 -0700 (PDT) Message-Id: <20200915.124254.1657521903825160294.davem@davemloft.net> To: npiggin@gmail.com Cc: akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, axboe@kernel.dk, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, peterz@infradead.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v2 3/4] sparc64: remove mm_cpumask clearing to fix kthread_use_mm race From: David Miller In-Reply-To: <1600139445.qwycwjuwdq.astroid@bobo.none> References: <20200914045219.3736466-4-npiggin@gmail.com> <20200914.125942.5644261129883859.davem@davemloft.net> <1600139445.qwycwjuwdq.astroid@bobo.none> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Tue, 15 Sep 2020 12:26:09 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Piggin Date: Tue, 15 Sep 2020 13:24:07 +1000 > Excerpts from David Miller's message of September 15, 2020 5:59 am: >> From: Nicholas Piggin >> Date: Mon, 14 Sep 2020 14:52:18 +1000 >> >> ... >>> The basic fix for sparc64 is to remove its mm_cpumask clearing code. The >>> optimisation could be effectively restored by sending IPIs to mm_cpumask >>> members and having them remove themselves from mm_cpumask. This is more >>> tricky so I leave it as an exercise for someone with a sparc64 SMP. >>> powerpc has a (currently similarly broken) example. >>> >>> Signed-off-by: Nicholas Piggin >> >> Sad to see this optimization go away, but what can I do: >> >> Acked-by: David S. Miller >> > > Thanks Dave, any objection if we merge this via the powerpc tree > to keep the commits together? No objection.