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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 2232CC2B9F4 for ; Thu, 17 Jun 2021 15:45:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A2E476120A for ; Thu, 17 Jun 2021 15:45:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A2E476120A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F19AF6B0070; Thu, 17 Jun 2021 11:45:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EF13A6B0071; Thu, 17 Jun 2021 11:45:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB9636B0072; Thu, 17 Jun 2021 11:45:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0028.hostedemail.com [216.40.44.28]) by kanga.kvack.org (Postfix) with ESMTP id AB6B96B0070 for ; Thu, 17 Jun 2021 11:45:39 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 21DCF909F for ; Thu, 17 Jun 2021 15:45:38 +0000 (UTC) X-FDA: 78263640756.28.C125F04 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf30.hostedemail.com (Postfix) with ESMTP id 1AB03E000259 for ; Thu, 17 Jun 2021 15:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=UnVzt7PAszJTbRa+Jw/bLoAcN+xAospjeFIMWdvAS0k=; b=ClxJu98LX8uxdF0NEb4H11siTr 0JScmunNj9H0IW9Z2TR4gtoLTdJlfYCpEWTuk+p++qr7Y4SKN6vi2HuKX9U/NYFsFGNp9yqcqF+OM czuCESzctqnMhC7AxANRB1jEKRlDJi9OLOIgQa7Za1crxt9UrSX4AFIb6oFtyc7XcrBIMxP+8NiQ8 yGhsgchA9wqJ6xmCI7FwywqjzePzx5Ovp6+hPzbVtaXxpHbBTV5w5j7LFXzT1amWp/6P6eOqPIoJ/ pYaOWPVzygBhpSgVFbxdULbu+788M8E5Htm4T0UeTv4cKJGP8FuaF5ydoE5VKKW5/DW6rdLVxupBm RCQHfxjQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltuCi-008ruZ-Dp; Thu, 17 Jun 2021 15:45:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D9FE1300252; Thu, 17 Jun 2021 17:45:21 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A3FD3220F6EAD; Thu, 17 Jun 2021 17:45:21 +0200 (CEST) Date: Thu, 17 Jun 2021 17:45:21 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: Nicholas Piggin , Rik van Riel , Andrew Morton , Dave Hansen , Linux Kernel Mailing List , linux-mm@kvack.org, Mathieu Desnoyers , the arch/x86 maintainers , "Paul E. McKenney" Subject: Re: [RFC][PATCH] sched: Use lightweight hazard pointers to grab lazy mms Message-ID: References: <1623816595.myt8wbkcar.astroid@bobo.none> <617cb897-58b1-8266-ecec-ef210832e927@kernel.org> <1623893358.bbty474jyy.astroid@bobo.none> <58b949fb-663e-4675-8592-25933a3e361c@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=ClxJu98L; dmarc=none; spf=none (imf30.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org X-Stat-Signature: zzjc8pqwcdpekrht1xyua7dgewbqwm3p X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 1AB03E000259 X-HE-Tag: 1623944729-564468 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 Thu, Jun 17, 2021 at 07:10:41AM -0700, Andy Lutomirski wrote: > On Thu, Jun 17, 2021, at 2:08 AM, Peter Zijlstra wrote: > > +extern void mm_unlazy_mm_count(struct mm_struct *mm); > > You didn't like mm_many_words_in_the_name_of_the_function()? :) :-) > > - if (mm) { > > - membarrier_mm_sync_core_before_usermode(mm); > > - mmdrop(mm); > > - } > > What happened here? > I forced your patch ontop of tip/master without bothering about the membarrier cleanups and figured I could live without that call for a little while. But yes, that needs cleaning up.