Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp411925lqb; Tue, 4 Jun 2024 15:37:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqG4OfeicMXeAFub0db5V4jCUpDr1KWlTKRgk9384l0CXGQUTsy689DyKxg5wM5G2MkKOlrJ+UV+sQ2Q9VocHEUlk5g9LN3DpaSTaleA== X-Google-Smtp-Source: AGHT+IEGx3BmaFBvtHouf47GzWW4riAkI1GIbUyT/Od4Ojd0l22ePCtnWSLPwccve7duD8MsVBpZ X-Received: by 2002:a05:6a20:9708:b0:1aa:674a:5e8a with SMTP id adf61e73a8af0-1b2a348a185mr4518023637.25.1717540647823; Tue, 04 Jun 2024 15:37:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717540647; cv=pass; d=google.com; s=arc-20160816; b=w9K47137dx3eU8MqMGzsyEbupRpgQ0Vl2Z9/87gyrhTz5+W0EYYP1uaeBKs0Ytvo0u tA+EoVR7fvXCp5DAaX/6mMFgPfXNgclb4MWG2SndRvEpyKgITXUKBXD/35Kb58Dlr7Xj RpahWQdvEup50G39LWYgep2wGO0ijBZdaKVVYsXI//kD/IbNO0ZGO0TJdNnoPeUdkb+1 TyVzg2zn99kZPis+oEvmKo4JYC2SKdKLlEpj4bNfDE+LNsfkyqX38/rakgsXhFmKkhCL /y/v2D6nfL8gZjsjsanCJBU3WjShvCkgOiCUigSIICuePDDsFipbi0I77Nn3Z+dzl9eZ jmXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=4USz69u7a3mcT7v/cGbP+/LxInq6JViPAWiHlAr7Uv0=; fh=07mCPaJP3Wo4et9ijFEFRu8IUstNwIQEbC1TJoajECg=; b=N7zbx4HE/0i3XsUWtttybCAkXBWSc76hwglYMF77Wd+F1qOJwvkZ27s33E+zTrXUw4 XzAgGEAYFHd8ihDUimCFo8X+AMKC6WkoKZRB9sgvDPhPx4jxdlp51ziXoY44XT+aw4Vf JfZ9nJ1sMVkBFA2OaINk/sEWyjxcD7A4trujm80ImiL1EoTW/BM5WAci5vF85yMveYum j5bmGMm5Jcd5cRtfSQvRHqoc5ryaKN6Z1llNa0iWA2X3SvpQDiKqfAtRbbULhMuVriZL LEkUPA2W55DiGtDch1PmBlstz+ki2rU324QW6m7BJXoiQFkC9pJBnM9DYT9PtB0eezHh lhzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kQ4OPaNa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b222bf7si9012373a12.477.2024.06.04.15.37.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 15:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kQ4OPaNa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201471-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 130ABB2108F for ; Tue, 4 Jun 2024 22:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D91DE14B06B; Tue, 4 Jun 2024 22:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kQ4OPaNa" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E2F112DDAF; Tue, 4 Jun 2024 22:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717540007; cv=none; b=uEcScCfbXarn9frEj7Qs6wF9X861GEnOKkf5UuKErRXqT/4yMyEP2jTLvEsSL2i70FsBPghE0o5w+EpUEXlx8K4FNGWsNf2uQlUIpmLU+KK/ApNuq+oleYVCHwaCvMWHfA4l6ej2uoQ5dtQezzfnu+r788fXWuKLJzR3PVE7iRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717540007; c=relaxed/simple; bh=E5pBkIsLmuX2paxbz4CuZ2YfFtII+0ihcCURK98EYug=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=MAV8yYh5EEtXLfVvLZbc1QVGHG9853YAo4CWgKIIq8+UBPT0n9a7KgqN3gA/GiCYNFxA3SMtrBazXGrv+VDUKekMS3RviZtf/UZOz37rSZ0s0oxjcZuZFLe1y7ka+izCIlF1+gUDbIfmBnMhK8SAVbEiSsvuzjUwnv6Qvdzb+ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kQ4OPaNa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF2C6C2BBFC; Tue, 4 Jun 2024 22:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717540006; bh=E5pBkIsLmuX2paxbz4CuZ2YfFtII+0ihcCURK98EYug=; h=Date:From:To:Cc:Subject:Reply-To:From; b=kQ4OPaNa4AVyjY7DorzFZXU4Oabx1igVsi5ETYvDDDFJn2OWiKTM6ydd2fqHEMiCP WK6pul7AUUQLKGbPUteLm4/cYenme/fd+ov5HRpbFdJCdvpAx5EhlvTmpEhMtM8kUQ ZkpcH8jUseO3IIXUw3X7qQhuHijmRUzj5f8Vx6lm0SB/ul1pcz/DfeWYL9scKoT6bB SzeeqoGUQr3fyX5i37uvKPecu40yVsPvmk9Hg4WVlxTooDm58J93m3rs1TL/hHPb+k sFsyrfGP4oncJCKsZpn4ggF/gXzHTIvifIqyImD0IxWkwushIWcfCgdooFaFKf7Pxt GtqwOQXmBJ/Vw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8A386CE3ED6; Tue, 4 Jun 2024 15:26:46 -0700 (PDT) Date: Tue, 4 Jun 2024 15:26:46 -0700 From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org Subject: [PATCH rcu 0/6] Grace-period memory-barrier adjustments for v6.11 Message-ID: <81f4e616-8125-4934-a8e2-fd5beae90995@paulmck-laptop> Reply-To: paulmck@kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello! This series removes redundant memory barriers from the grace-period code paths: 1. Remove full ordering on second EQS snapshot, courtesy of Frederic Weisbecker. 2. Remove superfluous full memory barrier upon first EQS snapshot, courtesy of Frederic Weisbecker. 3. rcu/exp: Remove superfluous full memory barrier upon first EQS snapshot, courtesy of Frederic Weisbecker. 4. Remove full memory barrier on boot time eqs sanity check, courtesy of Frederic Weisbecker. 5. Remove full memory barrier on RCU stall printout, courtesy of Frederic Weisbecker. 6. rcu/exp: Remove redundant full memory barrier at the end of GP, courtesy of Frederic Weisbecker. Thanx, Paul ------------------------------------------------------------------------ b/Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst | 6 +-- b/kernel/rcu/tree.c | 2 - b/kernel/rcu/tree_exp.h | 8 +++- b/kernel/rcu/tree_stall.h | 4 +- kernel/rcu/tree.c | 19 +++------- kernel/rcu/tree_exp.h | 8 +++- 6 files changed, 26 insertions(+), 21 deletions(-)