Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3192966imc; Wed, 13 Mar 2019 11:09:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqynKBBFqGtCzt68pOcIvFHu2qRUt9M2SU76PrYSFM1e6KvxIWNGRnkZ4ZcIVzv1p34ug+JW X-Received: by 2002:a65:538e:: with SMTP id x14mr11192139pgq.79.1552500597929; Wed, 13 Mar 2019 11:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552500597; cv=none; d=google.com; s=arc-20160816; b=AQJ3hkDgyaBn+KyqcraAudsnIUVf/AsNDN2tiTJFVhVxiU4vWGtAWWl5MK9MHELfAG vLFTTiSzPe4fLsUiM1Kr8s+9oUj6ORIl9eXf/Rw3ZOAwpGOEH42AfkWliWpYJzfwju7C MHbbHlph8+zTi4yListJSIDCBcGQIpHAf+5Yj9KRPGsXhDI0SU513OLLyzXOxMbCnnFS U0E2ambzi+c2h+HazA3qyH5IzPaEY0vDGQ99H401YPtEJ0+zuM4nQrqfJd400zxQH/Y4 K1LXGcSIiYlUTtp5ZrzeIQDRvukhj0jjHHQ8imURNEN0MoLv6xKQScu4qxrdGz6uJDvT eWHw== 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; bh=dy0zOH4yDOzxsEI5KpLYzN3Ll4kbWdHxXyo07dMvTJ0=; b=gMwnGXKmUEEtUoDJ+nCS0/x7l3q0L57JrxzBoNozbmsBysG8ow0DCfVKo0eWThwEpE 9jdNiBnYMjzYwNRH1CT7k1SUsLoa28xr2uGPWrDcr+35PJ02801D2Ngo85U3Snrahj1q W6FtPjkEZH2bvNE98ndnvF1J1R0DU0OGU33RRgGMoKHbzeAkyVzWlUYpppcryLz80eM8 a/fNSFRFcjFUeapEMXXsZU4WAEOS2dU2yRqtWcECBjnTlsBTyxZR77G2UehRIzZRPIND 8yFj4PMwhp8sU/Suu+RtkOXC5T41Ca19Z0K/BBoyEFSzAHTUyswDQCOTUa5Ju4sqXaoJ eDZg== 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 z3si10586082pgf.93.2019.03.13.11.09.41; Wed, 13 Mar 2019 11:09:57 -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 S1726837AbfCMSHd (ORCPT + 99 others); Wed, 13 Mar 2019 14:07:33 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42572 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfCMSHd (ORCPT ); Wed, 13 Mar 2019 14:07:33 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2DI7Evc045426 for ; Wed, 13 Mar 2019 14:07:32 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r76uxr0d6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 13 Mar 2019 14:07:31 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 13 Mar 2019 18:07:30 -0000 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 13 Mar 2019 18:07:27 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2DI7QbF17563684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Mar 2019 18:07:26 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2DDA1B2066; Wed, 13 Mar 2019 18:07:26 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1081CB205F; Wed, 13 Mar 2019 18:07:26 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.188]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 13 Mar 2019 18:07:26 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 24F6716C3976; Wed, 13 Mar 2019 11:07:30 -0700 (PDT) Date: Wed, 13 Mar 2019 11:07:30 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Joel Fernandes , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, luto@kernel.org, byungchul.park@lge.com Subject: Re: [PATCH tip/core/rcu 06/19] rcu: Add warning to detect half-interrupts Reply-To: paulmck@linux.ibm.com References: <20180829222021.GA29944@linux.vnet.ibm.com> <20180829222047.319-6-paulmck@linux.vnet.ibm.com> <20190311133939.GA29747@google.com> <20190311222903.GR13351@linux.ibm.com> <20190312150514.GB249405@google.com> <20190312152034.GZ13351@linux.ibm.com> <20190313150948.GA84821@google.com> <20190313112726.01d974fc@gandalf.local.home> <20190313155155.GN13351@linux.ibm.com> <20190313125125.1a1fb2f3@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190313125125.1a1fb2f3@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 19031318-0072-0000-0000-0000040A7B2D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010751; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000281; SDB=6.01173868; UDB=6.00613780; IPR=6.00954531; MB=3.00025964; MTD=3.00000008; XFM=3.00000015; UTC=2019-03-13 18:07:29 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19031318-0073-0000-0000-00004B7A3D1A Message-Id: <20190313180730.GU13351@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-13_11:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903130125 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 13, 2019 at 12:51:25PM -0400, Steven Rostedt wrote: > On Wed, 13 Mar 2019 08:51:55 -0700 > "Paul E. McKenney" wrote: > > > Does this mean that there is a better approach that Joel's suggestion? > > I believe he would end up with something like this: > > > > WARN_ON_ONCE(IS_ENABLED(CONFIG_PROVE_RCU) && !in_irq()); > > > > It would be nice if there is something like this: > > > > lockdep_assert_in_irq_handler(); > > > > But I haven't seen this. (Not that I have looked particularly hard for > > such a thing, mind you!) > > That would be trivial to implement: > > #define lockdep_assert_in_irq() do { > WARN_ON(debug_locks && !current->hardirq_context); > } while (0) Looks good to me! Joel, does this work for you? I could be wrong, but I suspect that Steve is suggesting that you incorporate the above into your eventual patch. ;-) Thanx, Paul