From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> To: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Linux-Next Mailing List <linux-next@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Liang Lihao <lianglihao@huawei.com> Subject: Re: linux-next: Signed-off-by missing for commit in the rcu tree Date: Tue, 28 Nov 2017 17:14:29 -0800 Message-ID: <20171129011429.GB3624@linux.vnet.ibm.com> (raw) In-Reply-To: <20171129115151.40b72764@canb.auug.org.au> On Wed, Nov 29, 2017 at 11:51:51AM +1100, Stephen Rothwell wrote: > Hi Paul, > > Commit > > d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()") > > is missing a Signed-off-by from its author. Good catch, Stephen! Lihao, would you please get me you Signed-off-by? The patch is below. Thanx, Paul ------------------------------------------------------------------------ commit d7e182c9c32480c1f579dd888ac50e88bfb39596 Author: Liang Lihao <lianglihao@huawei.com> Date: Wed Nov 22 19:00:55 2017 +0000 rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data() Since rcu_boot_init_percpu_data() is only called at boot time, there is no data race and spinlock is not needed. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 69722817d6d6..0abe1db53d70 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3636,12 +3636,9 @@ static void rcu_init_new_rnp(struct rcu_node *rnp_leaf) static void __init rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp) { - unsigned long flags; struct rcu_data *rdp = per_cpu_ptr(rsp->rda, cpu); - struct rcu_node *rnp = rcu_get_root(rsp); /* Set up local state, ensuring consistent view of global state. */ - raw_spin_lock_irqsave_rcu_node(rnp, flags); rdp->grpmask = leaf_node_cpu_bit(rdp->mynode, cpu); rdp->dynticks = &per_cpu(rcu_dynticks, cpu); WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != 1); @@ -3649,7 +3646,6 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp) rdp->cpu = cpu; rdp->rsp = rsp; rcu_boot_init_nocb_percpu_data(rdp); - raw_spin_unlock_irqrestore_rcu_node(rnp, flags); } /*
next prev parent reply index Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-11-29 0:51 Stephen Rothwell 2017-11-29 1:14 ` Paul E. McKenney [this message] 2017-11-29 2:48 ` Lihao Liang 2017-11-29 3:14 ` Hanjun Guo 2017-11-29 3:29 ` Lihao Liang 2017-11-29 20:54 ` Paul E. McKenney -- strict thread matches above, loose matches on Subject: below -- 2019-10-28 20:53 Stephen Rothwell 2019-10-29 0:37 ` Paul E. McKenney 2018-04-23 21:48 Stephen Rothwell 2018-04-23 22:16 ` Paul E. McKenney 2018-02-26 22:38 Stephen Rothwell 2018-02-26 23:22 ` Paul E. McKenney 2017-07-30 13:48 Stephen Rothwell 2017-07-30 16:57 ` Paul E. McKenney
Reply instructions: You may reply publically to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20171129011429.GB3624@linux.vnet.ibm.com \ --to=paulmck@linux.vnet.ibm.com \ --cc=lianglihao@huawei.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-next@vger.kernel.org \ --cc=sfr@canb.auug.org.au \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux-Next Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/linux-next/0 linux-next/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 linux-next linux-next/ https://lore.kernel.org/linux-next \ linux-next@vger.kernel.org public-inbox-index linux-next Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.kernel.vger.linux-next AGPL code for this site: git clone https://public-inbox.org/public-inbox.git