Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1110374rdb; Tue, 30 Jan 2024 08:10:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHptbVyh2x4R4U1b7YFiERZ/FJrN0NIprUu/3/zEjUtCvBepcR7s9AtMDG2Isx51nw2zDiN X-Received: by 2002:aa7:8c4c:0:b0:6dd:a32f:d383 with SMTP id e12-20020aa78c4c000000b006dda32fd383mr4923379pfd.29.1706631004343; Tue, 30 Jan 2024 08:10:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706631004; cv=pass; d=google.com; s=arc-20160816; b=JVLp9IUuRAfPQabVOdpiUoFgUPLMp87PM/YmabDZTUWaJCwRzr25lyBgfXn1Ie3uKw wdqaZ38+xsn8KtwHTPf76JRwYoiXzqqyjMzEBdOb/y7N+jKh2BiHtqQnD5f0ZS05Z8dy fQDFob1rPvCI1WC1LQ3bXy9jLB6s7cLhaG4qk3E8GgWnvip+TIZIfbVPz89KkYLwdPZm TqNIUQNDVsEFwi7UYmp/+Pw5wCsTqzH3LNWHtDqpMesil/WCWRbtOaw3lDz28p04RKXI 6wz0/eaz7ch4ogp1II0PsRhKEW9n6n19e2VTmYymN31NzByOS02nUMQLEBphqOoa3Tz5 G98A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eQJKNJ7KMpPl5TZRDotAiSZvq15vw/RhPvTEt6l9zo0=; fh=BydG0XzW4HmqeDOg+OXY6H6cF+kWlRFMJrMJKLDsIFw=; b=TYzhRNwX/oRh2pXByG6c7CA6iMnMOBl2mnj8tYUu5v7sajx+yLEAQApw9kx49vb2EO U7YCWtbwj80/HM+xCJa1RljFgVqzi6+d7j1WbYhe/l3Ao0z8BsJ1fIo6+EfWqDU/oTlW 5gR2l5b4Ll4QQnNYWFRS8zjtBG8rOBanMJ+LPhu+84NNUY4jkxm5VdSkbBpnNWa3v+EG /2eoteTvi48FEUhvDM51//exTCoPkLFYT8hR3wV7bINhFXBmkSMs4ffY56zYbWgI5FxS D5+8Uy7gTNDNoMVPGf6xA81m0A4ov9AUmWCv/2Ity1NSnwo9Cn8mFrViMJPdduqzZRqU Fqiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ix0GOQRt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44868-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 b6-20020aa78706000000b006dde28e0cc4si7507705pfo.0.2024.01.30.08.10.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 08:10:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44868-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=Ix0GOQRt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44868-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44868-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 31093B28797 for ; Tue, 30 Jan 2024 15:47:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E079D85C44; Tue, 30 Jan 2024 15:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ix0GOQRt" 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 14AE1EAC7; Tue, 30 Jan 2024 15:47:19 +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=1706629640; cv=none; b=WI6/5YnZvpg5MYa1/civgbYCb6E+xcYjOPIr1QNx3unXbH3GPk4c5+sJXoT21/1Mahcj2+yaxwHapCDXM6muFCwjn6QspX4903v0yygiAIp7Ei4/o1OtUWwOkrRfMp10UcPc4OfXamhY6b+ws5yk32e+EY3hg+ol9es7wcgebu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706629640; c=relaxed/simple; bh=0hFwLWXv8l3iNEb/nuzAgNh+gJ5cbBJy4si1SQRC4bo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QHSj2d/aRQAPADhNnD4Aa5KYs1ORvxraOgcz2Ble7JsGL5/WOVpU16vj2NGNmjJCuuRu/tk2jYCy4fwBCpjrNBah/Ur+qhRsjel9DXShOIwNvrHma40ct+REKWMuqNZ8XJlp2EYmfHfFSfD/2IKxN+RtSv95+logIbpYiuxYhUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ix0GOQRt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 020B1C433F1; Tue, 30 Jan 2024 15:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706629639; bh=0hFwLWXv8l3iNEb/nuzAgNh+gJ5cbBJy4si1SQRC4bo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ix0GOQRtOz7fneqJfzWP5PA2tQgzY2RdPx4tapT7pgubGixjlcwsCUFEh9+xAukWK yDyXrZvfWQd/YJCZAN2X7M9jSa2XLkwEI2CcVbuJqh/FRQXpA8R3Kj1uTWyHlYeh90 k31hVH8QEgp31up2iWQKKydsr7FyQN94ln8O701m5a4yFVdlf5RhpRaqYWtZok3GOf qbCIzNCv2qBmnplDnP4wWKjnFj3vd80zyR4fXOgRRfUBsQA8QwKGBmpa7FWJsic8+e hLjUXbL9yvec8G7wGs9NPfgFQasFG7+mz/tUNkCLGkPLlhJYF6TLlIdbKL1jUWqOqO D9IQ6hyodnjwg== Date: Tue, 30 Jan 2024 16:47:16 +0100 From: Frederic Weisbecker To: Boqun Feng Cc: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, "Paul E . McKenney" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: Re: [PATCH 1/8] rcu/exp: Remove full barrier upon main thread wakeup Message-ID: References: <20240129232349.3170819-1-boqun.feng@gmail.com> <20240129232349.3170819-2-boqun.feng@gmail.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240129232349.3170819-2-boqun.feng@gmail.com> Le Mon, Jan 29, 2024 at 03:23:39PM -0800, Boqun Feng a ?crit : > From: Frederic Weisbecker > > When an expedited grace period is ending, care must be taken so that all > the quiescent states propagated up to the root are correctly ordered > against the wake up of the main expedited grace period workqueue. > > This ordering is already carried through the root rnp locking augmented > by an smp_mb__after_unlock_lock() barrier. > > Therefore the explicit smp_mb() placed before the wake up is not needed > and can be removed. > > Signed-off-by: Frederic Weisbecker > Signed-off-by: Paul E. McKenney [Offlist] For further posting, don't forget to add your own SoB while posting patches :-) Thanks!