Received: by 10.192.165.148 with SMTP id m20csp5063612imm; Tue, 1 May 2018 08:28:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMi3NNCNKAPdCABP0GmUVhQAQk1ztX1SyzuBFaTVc4IGiQSjFn+GdtOUI2Ljh76bN33WNM X-Received: by 2002:a65:5001:: with SMTP id f1-v6mr951542pgo.135.1525188495227; Tue, 01 May 2018 08:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525188495; cv=none; d=google.com; s=arc-20160816; b=KcCbNraOQlOrtqPHUoBayYA/AcwL341xa+Ej1IgK8k+E6fem8fwE30Yx/PmJSjV9Mq G4Rlxm561pKGpyDX19ps9aRc4tBHt6L7zhxkU7p1bv7cZBcHYYWNm7O0jxT90Dfa1uI7 5XqfBQFDekR8KNcRZwPsldEfZ8IfS+LMN2vRUd5cyXGnD2+mt1OLixnY6d97FZzqI/48 FZ9CHxf/aNtGNU6jkcbtK9AIPeQ7up83vsh6oQ7lKSBczNHfZlLYFE/oJpxFi6+azk7u o8VGQUrVvD/LLiFehjYgpMpD76hk4oastjLof1l+YGYwMHIVrG0GLpUg5aA0aSTxa/05 pAiw== 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=2PA6o/ZryLH6psxrhNQwS7CG8/nn14dh4YB6CoFFGpQ=; b=E7cUilIy6vSQGCSU2r6uc7Y776Gy2NjPTwLaH79vG3j+wkNvriLpqPi+sUMVxqfn9T s9a8VRzoLbnnGkBmNCopU9h2xJuuLMVQKFTlzLeJRQVL8JysKH3Asi9VWIY+1kQUzZi0 Xua8X7Qg1+G4FH4Jssn2TH+HgbNiks+AH6jDTd8EIReHMidmscUR8RtyPJ6ZeDRKwINT VSisRl3YCS1LvOsP1RuYeCSiIeb2YY86SqKZM/oRg/CwtYTTEOTRC0bwHGjAPRO2KJVr d02aZg3dRHLcqrLylW50yl14Ug7F89x6rUVQfLn86JvSCPcYRYfJN625qp5Jk1AAux2Q VuPg== 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 t22-v6si9807738plj.595.2018.05.01.08.28.01; Tue, 01 May 2018 08:28:15 -0700 (PDT) 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 S1756072AbeEAP0b (ORCPT + 99 others); Tue, 1 May 2018 11:26:31 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56408 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755600AbeEAP0a (ORCPT ); Tue, 1 May 2018 11:26:30 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w41FIwYS013743 for ; Tue, 1 May 2018 11:26:29 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hpsfxuk1m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 01 May 2018 11:26:29 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 1 May 2018 11:26:29 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 1 May 2018 11:26:23 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w41FQMAC3539422; Tue, 1 May 2018 15:26:22 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3E34BB2046; Tue, 1 May 2018 12:28:23 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 06CC3B2054; Tue, 1 May 2018 12:28:23 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 1EA2C16C0EAA; Tue, 1 May 2018 08:27:43 -0700 (PDT) Date: Tue, 1 May 2018 08:27:43 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Peter Zilstra , Ingo Molnar , Mathieu Desnoyers , Tom Zanussi , Namhyung Kim , Thomas Glexiner , Boqun Feng , Frederic Weisbecker , Randy Dunlap , Masami Hiramatsu , Fenguang Wu , Baohong Liu , Vedang Patel , kernel-team@android.com Subject: Re: [PATCH RFC v5 3/6] srcu: Add notrace variant of srcu_dereference Reply-To: paulmck@linux.vnet.ibm.com References: <20180501014204.67548-1-joelaf@google.com> <20180501014204.67548-4-joelaf@google.com> <20180501141817.GE26088@linux.vnet.ibm.com> <20180501110403.0b661039@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180501110403.0b661039@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18050115-0052-0000-0000-000002E72B48 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008957; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01025984; UDB=6.00523967; IPR=6.00805215; MB=3.00020883; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-01 15:26:27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050115-0053-0000-0000-00005C871E7C Message-Id: <20180501152743.GK26088@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-01_07:,, 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-1805010152 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 01, 2018 at 11:04:03AM -0400, Steven Rostedt wrote: > On Tue, 1 May 2018 07:18:17 -0700 > "Paul E. McKenney" wrote: > > > > > diff --git a/include/linux/srcu.h b/include/linux/srcu.h > > > index 2ec618979b20..a1c4947be877 100644 > > > --- a/include/linux/srcu.h > > > +++ b/include/linux/srcu.h > > > @@ -135,6 +135,11 @@ static inline int srcu_read_lock_held(const struct srcu_struct *sp) > > > */ > > > #define srcu_dereference(p, sp) srcu_dereference_check((p), (sp), 0) > > > > > > +/** > > > + * srcu_dereference_notrace - no tracing and no lockdep calls from here > > > + */ > > > +#define srcu_dereference_notrace(p, sp) srcu_dereference_check((p), (sp), 1) > > > > Given that this is a one-liner, why not just use srcu_dereference_check() > > directly, with 1 as you do above to disable lockdep? > > I prefer what Joel did. It documents why we are doing this. Open coding > the call directly will just confuse others that touch tracepoint code. I suppose... Reviewed-by: Paul E. McKenney