Received: by 10.223.164.202 with SMTP id h10csp3846706wrb; Tue, 28 Nov 2017 18:50:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMZIsTlrLhT0OrPRGJGAeaFiF23ppZjPtiA8u6z+/MXvciDeboFuD0Cx8n6joHVfiW25qMva X-Received: by 10.99.185.89 with SMTP id v25mr1348941pgo.110.1511923829128; Tue, 28 Nov 2017 18:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511923829; cv=none; d=google.com; s=arc-20160816; b=NAlYgcQP41LMTmhA2rYQDJfOAS2xWvGAXL7H4m64gIVNGohmN5uZGzXIr1B318snZd 5BtdflipMlczOohzLrrjD3wQv3L8CVuz34w2c93/MvNAm6UWuaSFtBArQxAtDUSfSaJN gs8OdBn8dSojNd7ewkNjF6g70nG/06DNvT8laWmBYjy3ITPZyposolMh4KQEMycbPu1H oUqnFHtC81ToIrbLRZ9BYRsf2DRvx0CceZXRv1u5UffEkPIE0O+t3yvzuuM4CHiQpIJd nD11j6qm1lLzFBea+uaduHKlEMpYK/ZaJ4MgqAi9L1Rz/roh1nv0VSmolX2m3IUUplH6 5hcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=jyxdya1ReFzvyaNdiAV7zLPZvxA+nQI2FAfKp4mrgvw=; b=W44HC/7CsCUzTI28CPmvjxFUNO2FmVDttRdsIbxr1NTe0pVrgbmpo83VxX4XpBHTFk soMtvYRUTiPY22fDnq88ZQaS+sAznw+igaLuyO2LIu8W2Jwu0CeK377sO7/w60uGSkv5 cjz/tPM4A96Ctkwq6n7fB/xwb+oQP9oUEJ/z06G+9ktRBLXpMi5vxCDBQ3UQea0DdQaW Q9sSswrwJTwTvHxvv/ebhr9Os/HAXEB82NDzV9zFV7TZy9me+ab4J1iO1HQWPQ4tDuT4 w5UJxqqzedW+dM42wcyG0kUtjcHkRtOFUb5Qfb2NnHDA9q7U05C7JiKh2lSeTpCpC9Kc 6Yew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si470375pgs.525.2017.11.28.18.50.18; Tue, 28 Nov 2017 18:50:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbdK2CtW (ORCPT + 71 others); Tue, 28 Nov 2017 21:49:22 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:39189 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752682AbdK2CtV (ORCPT ); Tue, 28 Nov 2017 21:49:21 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6A03BFFA144F3; Wed, 29 Nov 2017 10:49:06 +0800 (CST) Received: from [127.0.0.1] (10.151.18.148) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 29 Nov 2017 10:49:01 +0800 Subject: Re: linux-next: Signed-off-by missing for commit in the rcu tree To: , Stephen Rothwell CC: Linux-Next Mailing List , "Linux Kernel Mailing List" , Hanjun Guo References: <20171129115151.40b72764@canb.auug.org.au> <20171129011429.GB3624@linux.vnet.ibm.com> From: Lihao Liang Message-ID: <0d3da4c4-1eb3-bcdc-690b-7f864ab35073@huawei.com> Date: Wed, 29 Nov 2017 10:48:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171129011429.GB3624@linux.vnet.ibm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.151.18.148] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, Signed-off-by: Lihao Liang Many thanks, Lihao. On 2017/11/29 9:14, Paul E. McKenney wrote: > 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 > 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 > > 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); > } > > /* > > > From 1585361138147426109@xxx Wed Nov 29 01:16:39 +0000 2017 X-GM-THRID: 1585359635963962041 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread