Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2714332rwd; Fri, 26 May 2023 10:06:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78ALM3oGmW010LLrwhJ9ng5Jdxg8nJFBPGA80UIR55ds5XLbalmaXhyTp/D+mdtr5sdCf9 X-Received: by 2002:a17:90a:ee8e:b0:246:9c75:351a with SMTP id i14-20020a17090aee8e00b002469c75351amr3014492pjz.12.1685120814934; Fri, 26 May 2023 10:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685120814; cv=none; d=google.com; s=arc-20160816; b=rHRJVIErsDdmjiysH8a55htLN3z1t4MM/UOfkxSxasoflXzC+zZ6iXdNl5I4WWmMas rlxcmPEqFnHRmEiQoX1wEunZnRCSiYPnCqYDmPSYhbHFsnoapkS9krGpPIw/7KysddZz Frys+Tb8703eGxahZ3nWFYOrT5mvV8t1KRDf0DQWjkFYKj7rWU7EwG9tR8CpE0Fp/4yI 16vSkgkG0ib69SPN25w3jCCoSpuFnPcQFNHiMwUhtUAV9bG2kubI0t4fZ3kPnXmg9R4e pFN5bIEAmiJJKLO2XmiOVQnpeXwCZ4EvaX2WAZRGXfcIvnOFMgLcE18zDxeBGeXWDdtH AEvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0/P6scZPRnOZeTZnTWwHw9LDgqvXYUYrAKTqdy4If4E=; b=wV1ojeGQsxQHV9YxdKm8HZCPDPN76GLKh3tL5Z5uUkXtljt83FxiyyCmSAE6qzFXKN bIfZH1qytda+VGBI713J1vxkxGQoNjaInIiXGD2ffssG3GSMBPvav5FXWbU+K571tCML fLZgQJwAE6KvIA66ruSTQZnHSeedpbSUb3c8w63M1phdYU3ibR4r8+l3AJhXEgCa1El0 wUQ4rm2UpcgPtvcigt/aekTjbzn/4FkdWdYDi8eTjqpyH+K3wPhLE0BRJNhPaqnaSrSN FRLdoZmYC1TGaBSBwpo163QaxIATBSx48kJZHZ9WlVjqTfUlG9CnNGI7ftSVhFLwMIe8 jHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MXY6KBzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u198-20020a6379cf000000b005303a12ee8dsi3997849pgc.293.2023.05.26.10.06.32; Fri, 26 May 2023 10:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MXY6KBzR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjEZQoW (ORCPT + 99 others); Fri, 26 May 2023 12:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjEZQoU (ORCPT ); Fri, 26 May 2023 12:44:20 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BA971B3; Fri, 26 May 2023 09:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=0/P6scZPRnOZeTZnTWwHw9LDgqvXYUYrAKTqdy4If4E=; b=MXY6KBzRmwjin89VlNauNsRz4+ 2E3OVMOI7EA6gG2pYniBPc5cc5rU+3bGAtN3H7DAZvhulhVUbzz6vXhJHmxCP+rtITreDHevWibLV C0Qe/k70jTej0esoQZQbV5bAaAXu51LZvEIAqrl+qsfdx/2rAi+iCwQHJOa0tXSpWvI75RzxlJQiq NvA244XNtmIZUEdVSZ7ihpn/IKTJWWGs3axWMZBY45uwbDhpdB6K3n4Rc7d5tldzeCMz4nZYwBTZV 7wWKe4TCT/R+NGbxIPK70SZxgJzP8Bj9JTwnjj+ZrD8hRCloaMAqqarZfzQAVvNMq/MXAbiTshvbs p7m3zusQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q2aXi-002xpM-5W; Fri, 26 May 2023 16:43:54 +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 (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B930D3002F0; Fri, 26 May 2023 18:43:53 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A107622163BD2; Fri, 26 May 2023 18:43:53 +0200 (CEST) Date: Fri, 26 May 2023 18:43:53 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: Greg KH , torvalds@linux-foundation.org, keescook@chromium.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, ojeda@kernel.org, ndesaulniers@google.com, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, paulmck@kernel.org, frederic@kernel.org, quic_neeraju@quicinc.com, joel@joelfernandes.org, josh@joshtriplett.org, jiangshanlai@gmail.com, qiang1.zhang@intel.com, rcu@vger.kernel.org, tj@kernel.org, tglx@linutronix.de Subject: Re: [RFC][PATCH 2/2] sched: Use fancy new guards Message-ID: <20230526164353.GB4053578@hirez.programming.kicks-ass.net> References: <20230526150549.250372621@infradead.org> <20230526151947.027972233@infradead.org> <2023052626-blunderer-delegator-4b82@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 26, 2023 at 12:27:51PM -0400, Mathieu Desnoyers wrote: > > Anyway, the naming is whack, but I don't have a proposed better name, > > except you might want to put "scope_" as the prefix not the suffix, but > > then that might look odd to, so who knows. > > FWIW C++ has std::scoped_lock. So perhaps using a similar wording may help ? Yeah, C++ is a lot more flexible than CPP crazies. But yeah, happy to change it that way.