Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4726073rwb; Sat, 10 Dec 2022 14:07:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Lc3tGrW/rOBRiC1kJXTq1BH3oqbWUWj6ET2m9fx7fVQSHX7D5O2ebtDvXRqwtKsXvScl3 X-Received: by 2002:a17:906:8d06:b0:78d:f455:b5c5 with SMTP id rv6-20020a1709068d0600b0078df455b5c5mr8204846ejc.5.1670710030178; Sat, 10 Dec 2022 14:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670710030; cv=none; d=google.com; s=arc-20160816; b=0qheGzx96SSkSompOEmY/a4uUIWfCF7y4ka220WM7LmklpLfKUIw060ysKy6xYDRQa 3KbZ6bC8B1QMQ1MgrWcYWWyecJV2zOVvoL6Wii4jh3l4qsKW0725rwTL9Eg2MdOvAaFG Dby9XVQsd7QUepYtEMxUjOwOTeoXoQeYWI2KX8crLRiX+bxfTc/n5Laqh5vWDTPci6Cg VWqa7XxpYnoF5kmv7IwrqAyUF8G7VUNj4amWS3Q/lZB8zgO3PcK+560L7dQwy+na3y5e v7Ibm6URQSTScoE8yOdqjCi3QwIGEemP3ZDcrP9yrvrOv4lzaiG8Uo3hFxWrDGjZAPeW +P4g== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=UoqY/tIpOLsfmNKvM5O540zuANNRimMYtZA/fuVLYug=; b=XSf6LLwNgwYKjsv0sa7ACH83e8Sxr4cy9iG/gW6yvRoZgUujaEid1RFosgvs27kuYL GFjxv5Z+2Wq0dYIsSVncf1vEbhH0j4zpFHEL+uvuyCmYM/gt2lY7DGtON5T2GCTGJHTV QZ7/i0HiJArICfyHUmH0vSpcSNtEda7L5OroOBKThKfdDKIdxqSUi0hAUGLjSWnBEOvD pT1A2ycAyGqj0RZyV3Q1GpRGBHD1EWMxFD+U2Libj11ITFTvonT/FIP9QmYP15AOYBlc QoxaTZ2SrCIN7NuIbR2YcX2FIQz+ouN3IF97iE2IYJ2oYh93t/h2cUE0Y6UPmPdSQlHt ytlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f4k7RunY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a1709064fca00b0078a802cce5dsi3593314ejw.592.2022.12.10.14.06.51; Sat, 10 Dec 2022 14:07:10 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=f4k7RunY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbiLJVeQ (ORCPT + 74 others); Sat, 10 Dec 2022 16:34:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiLJVeP (ORCPT ); Sat, 10 Dec 2022 16:34:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86E2413FBA for ; Sat, 10 Dec 2022 13:34:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 928C060A65 for ; Sat, 10 Dec 2022 21:34:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD0FC433D2; Sat, 10 Dec 2022 21:34:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670708052; bh=uMhZzPEArHPhXyGDt+hkW/iaMUWCmUw8KwfG5lGSxk0=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=f4k7RunYHoOoIMo0Nnm4+Gm2fCAZ+5uwbAouuV2lYslgbpCe3bBZYwLwnaQcoUAyK T7SuuzHPSWKBKtBPCWr8Y58J8PIBqAZpGBIHlE056CFemRYu7OLKHNug87HN343nOK 8GMNWtavLHDfXT/qDYKKfOVS1jQcmeae1fVGBHGlSPmAd884yIH+9QgdHyCCJB25Ef SjaOJynkaElif+29I5onxQHw6s5XgjzEXpB61h4Ja+QbjnuNYx3Cv+c6JZ/EGiYkDt WO45V4x0DTpF4RcmCLJcjsHqBXcN/0l0ap0mky+ExLGRa2ICD4ww33J2EfosKOzbEA hc/dgCWR69BzA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 7F9155C09A2; Sat, 10 Dec 2022 13:34:12 -0800 (PST) Date: Sat, 10 Dec 2022 13:34:12 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Masami Hiramatsu , Andrew Morton , Karol Herbst , Pekka Paalanen , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov Subject: Re: [for-next][PATCH 13/25] x86/mm/kmmio: Use rcu_read_lock_sched_notrace() Message-ID: <20221210213412.GF4001@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20221210135750.425719934@goodmis.org> <20221210135825.241167123@goodmis.org> <20221210174753.GD4001@paulmck-ThinkPad-P17-Gen-1> <20221210133425.4657985e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221210133425.4657985e@gandalf.local.home> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 Sat, Dec 10, 2022 at 01:34:25PM -0500, Steven Rostedt wrote: > On Sat, 10 Dec 2022 09:47:53 -0800 > "Paul E. McKenney" wrote: > > > > Note, the preempt_disable() is still needed as it uses preempt_enable_no_resched(). > > > > > ... > > > Executable code can be the best form of comment. ;-) > > > > This does mess with preempt_count() redundantly, but the overhead from > > that should be way down in the noise. > > I was going to remove it, but then I realized that it would be a functional > change, as from the comment above, it uses "preempt_enable_no_resched(), > which there is not a rcu_read_unlock_sched() variant. If this happens often enough, it might be worth adding something like rcu_read_unlock_sched_no_resched(), but we clearly are not there yet. Especially not with a name like that! ;-) Thanx, Paul > > Acked-by: Paul E. McKenney > > Thanks! I'll add this to the commit. > > -- Steve