Received: by 10.223.164.202 with SMTP id h10csp3770789wrb; Tue, 28 Nov 2017 17:16:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMYVzhSTUjgtzlqFS/SepRyIy+PXt6TaGAzO+dHpTIxpJ/iRbS2SIC8o9OzPhycAwEy/SXXI X-Received: by 10.101.69.141 with SMTP id o13mr1101376pgq.125.1511918199704; Tue, 28 Nov 2017 17:16:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511918199; cv=none; d=google.com; s=arc-20160816; b=fBHYL1vn/NFswSFaez2UZFvVvRFHP5U5cdFqX+jJQ7goMMDM0uBktjtEplkGinkq87 PDriAVEQv55rBqOPzHFHlUOgmS9ssONBMtwOUUJorB43wnOh0e9iTZUb0IbeKCsy8sPQ sPwfes8/17eYz7/jz+fiRtiwPPtclFyLdqhifRvNdbb0qLZz5pso7Yb34FN5AuCh1TE4 OKflkD1USCFheSl5eRvDO90nZKfpLkJcBYNjv7WKB9ydmDHH42NUSxkHr3DdiezGm1wd cBA9w9cIpqYK96aTcucNdhoBZxqEoJQLLt8YPM7BCWW4nugsTp2JNZQpCvWauRiSjD/o Fl8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=T390bVXapEjq+xNSyRix6wed7HyF5jeb7QBnjaGqfQ8=; b=gCXF7xGz5aOJX79+q3s5jWWfeZVzTQvFtWDDx+UpiwCxkm8ljrDu5d+pGMZYdq4VJY d3iZoPeiC6vgeNzjsewowpR+GOHXLwkR8wBysbwxhrfBYVA3oQjGFSYUGbBIieE3PdH6 zvzvcBdVvFExuaqf60SAPiFZQ0HTg5sX57kqPPKpT2kRa6Fnj/XJE08R/kwuMP49bs7V KYI2uYNzmNIUbmG3alkWluI1yD/hQTMWzUAMl/Ye4EFZc0WuUbQO2de0hocnnKHBEyEm sgFHg2GF1LBumFk/hmUmLFXayJ/vc3/WjRv1CEE7ep5KQxIvA7u7FXCj6EIwU5xELtaK eidw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si373578plj.91.2017.11.28.17.16.29; Tue, 28 Nov 2017 17:16:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751857AbdK2BOg (ORCPT + 70 others); Tue, 28 Nov 2017 20:14:36 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54964 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439AbdK2BOe (ORCPT ); Tue, 28 Nov 2017 20:14:34 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAT1EHVv072497 for ; Tue, 28 Nov 2017 20:14:34 -0500 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ehjmk0ssw-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Nov 2017 20:14:34 -0500 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Nov 2017 20:14:32 -0500 Received: from b01cxnp22036.gho.pok.ibm.com (9.57.198.26) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 28 Nov 2017 20:14:30 -0500 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAT1EUQA44957820; Wed, 29 Nov 2017 01:14:30 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8F4AFB2050; Tue, 28 Nov 2017 20:11:38 -0500 (EST) Received: from paulmck-ThinkPad-W541 (unknown [9.85.185.99]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 53324B204D; Tue, 28 Nov 2017 20:11:38 -0500 (EST) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 69F5216C323C; Tue, 28 Nov 2017 17:14:29 -0800 (PST) Date: Tue, 28 Nov 2017 17:14:29 -0800 From: "Paul E. McKenney" To: Stephen Rothwell Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Liang Lihao Subject: Re: linux-next: Signed-off-by missing for commit in the rcu tree Reply-To: paulmck@linux.vnet.ibm.com References: <20171129115151.40b72764@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171129115151.40b72764@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17112901-0048-0000-0000-0000020CA2DF X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008121; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000242; SDB=6.00952667; UDB=6.00481286; IPR=6.00732748; BA=6.00005719; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00018238; XFM=3.00000015; UTC=2017-11-29 01:14:31 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17112901-0049-0000-0000-0000434EC667 Message-Id: <20171129011429.GB3624@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-28_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711290014 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 1585359635963962041@xxx Wed Nov 29 00:52:47 +0000 2017 X-GM-THRID: 1585359635963962041 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread