Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp740349ybx; Thu, 7 Nov 2019 01:58:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwCGIs8jx938NkWDr010EStvgTmF6BCzSpNm1vW77NL18cqywIs97/DVzbg1O0/M1pnZLjA X-Received: by 2002:a50:f30c:: with SMTP id p12mr2464044edm.208.1573120684809; Thu, 07 Nov 2019 01:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573120684; cv=none; d=google.com; s=arc-20160816; b=mgEr0w2qyX5+yV7s+wXps0Cu9oDm6VnlHcH67W/vFz8AmAI2Mqd4z7uZhnqaHtle8y PN2aVW0wJX4cT9ae5qDEQMDH2ojfO9Ko4gR17Bc0EjiHCKEaQ1P/hyH+NR7Q/XShyeht ac2F5KKpKfHEge3Z2j+sz8nlpNiQipPFvRUiuaXmEGYD1JZh0Nze/tilZC+dUfFVkP51 zUc55LgdYxdFSsvRcnCNREyipz21ItFaZ2miEUIo5jnQYLcC7dDlHd2J8UwR5r53iDRR rHjBiUfRGF8+Vk06VwrGakcwpeDZtSTy3GtA5yRC7u5SGkhMVfFvs4o4+L4YjD8LmETE uusA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=fZyIUAKARhq90ElKzLAC0+HynmK3MWppr+XxhzmZID8=; b=qEpeAjWyfnSVofo5sqObhqXuCfV1CVfMdiMyw7zv2YNOSoEo8JG1Sedg6Zy+XSI0WE SjYlfxHmCCuREYUvTvzEYxZGauBUoqg+ddcpJB8dDO7QDeNNbDshK3ljcIiry3Itk75A qjy7yLA53jWyXz6WI0X0vDdxOGk2oAgoINkVgBu52zfEmrSJmZytht4PyJvPKlh99lNZ rrFA/YFonwbfwNH6vV0wuYeLCw3nk+F/obf7XG1UuNVgCI7+wClfA8okNPA8RzQCF2zn jTL+DmBYQiZIhr+Mh5xPqT3GI8edVS9A0XZF1wFOiHL9OinGTeKTNLy7MuhEPnte0jT/ tEhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K8YgBirC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i47si977335eda.91.2019.11.07.01.57.41; Thu, 07 Nov 2019 01:58:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K8YgBirC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387856AbfKGJz5 (ORCPT + 99 others); Thu, 7 Nov 2019 04:55:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:47494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727926AbfKGJz5 (ORCPT ); Thu, 7 Nov 2019 04:55:57 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [109.144.217.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F14592084D; Thu, 7 Nov 2019 09:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573120556; bh=11m4wZfJjMPzk2fEBKdsC1rwpRjYVXA31fkds2/+/E8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=K8YgBirCk1MCAIe836pAstA8lN5eLPqh66hjhqYqOJ+eVfgsBwM5gkYY4S67NSEUc OVKLnNN9rQUhA/BKSu/Fky1xh6+Ppz1NmfhB7gtw6UcHHuGPfvrcxM/rSqIy+B64Ri qf3qKUt387bEclE5+IwlngVc39emcU9CcFYiTGxM= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 05DB735227FC; Thu, 7 Nov 2019 01:55:54 -0800 (PST) Date: Thu, 7 Nov 2019 01:55:54 -0800 From: "Paul E. McKenney" To: Amol Grover Cc: Phong Tran , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [Linux-kernel-mentees] [PATCH] Documentation: RCU: rcubarrier: Convert to reST Message-ID: <20191107095553.GM20975@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191106165617.GA12205@workstation-kernel-dev> <15512469-fc7e-24c8-d407-72ba7015a099@gmail.com> <20191107063949.GA2310@workstation-kernel-dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191107063949.GA2310@workstation-kernel-dev> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 12:09:49PM +0530, Amol Grover wrote: > On Thu, Nov 07, 2019 at 07:19:27AM +0700, Phong Tran wrote: > > On 11/6/19 11:56 PM, Amol Grover wrote: [ . . . ] > > > We instead need the rcu_barrier() primitive. Rather than waiting for > > > a grace period to elapse, rcu_barrier() waits for all outstanding RCU > > > -callbacks to complete. Please note that rcu_barrier() does -not- imply > > > +callbacks to complete. Please note that rcu_barrier() does **not** imply > > > synchronize_rcu(), in particular, if there are no RCU callbacks queued > > > anywhere, rcu_barrier() is within its rights to return immediately, > > > without waiting for a grace period to elapse. > > > @@ -89,78 +94,78 @@ module uses multiple flavors of call_rcu(), then it must also use multiple > > > flavors of rcu_barrier() when unloading that module. For example, if > > > it uses call_rcu(), call_srcu() on srcu_struct_1, and call_srcu() on > > > srcu_struct_2(), then the following three lines of code will be required > > > > Hello Amol, > > > > srcu_struct_2() should be srcu_struct_2 > > Hey Phong, > Thanks for the review! Fixed and sent the new patch > https://lore.kernel.org/lkml/20191107063241.GA2234@workstation-kernel-dev/ Phong, please let us know whether Amol's new version looks good to you. If it does, preferably with your Reviewed-by and/or Tested by. ;-) Thanx, Paul