Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1296428imm; Fri, 22 Jun 2018 14:01:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI0GPZFx10hhOVRKC8GFCZC6sbfVSrICS4G4LxHsJVlo4X43wgPs9FIe4/GmBfklaN7AYU+ X-Received: by 2002:a65:6689:: with SMTP id b9-v6mr2730151pgw.326.1529701300278; Fri, 22 Jun 2018 14:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529701300; cv=none; d=google.com; s=arc-20160816; b=YhftJryTQpEXGPLChVWIwzi/4Ar3HtoStOTRQ2HpN/WvzIxZPS91tNiBZkYv5xBeL3 HWM6lknl6CT4BNiRL+m92sSIV/XRY29b5i8JCXuADJS3HAwmKhnfZg+XWmEEOH4NAkAK 7w1vDzeehrX/Y/+8LXu7Cs8hN+7ehNQB5mVKqhC93SuDhJ7dTG40TpXgOfwBjjGmFtv9 ANygrDTAS3vxu0MX+6DGPWPPuKvjkle6fsLF2/Zu+/5Jo/JALar/9bbA4+8NkVNuMqvK g+WKJmZfhiipFh/bpblir13EI+Qx2irZDcrVaabg32hmhuLx/ebZyI6ZJMORoJ2oBUxG ve2w== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=8k+UWxqkzbnSBZzQ0PdYpFLXbxW4/RrertGtVnDThVE=; b=U/6B4cWDC/71+9aFP3rdNDrysO+8oBWcWsUdNczPAjfmoZOVZFRWDvhacrOE+pvaCH hzzzbjvVM95fcWcu6ETqgm30LruE8/LAzPG8q1Kv6NqVOjFulVlAlr7lnn4c0fh1jB7K twuidMMPlWpUik6LyOp6RfUCvkigZWBjbu8o7ti57LMWTYnsozQA+Cupoco1+XbSI7cB jL9EGZl8IDpYrMt+AB7ecQ9kaFyzumoIz2z0W/L091LWIlpUZ5K+SW8FtrdXs2jA0dXc 6VEIUPv3A3QwqmZOTV8P2A7Fvl47bTRTKmdLfXo1vkPgv+NXeYa+0lVMP9tzAAugl0wa uk+Q== 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 h1-v6si6672969pgf.560.2018.06.22.14.01.25; Fri, 22 Jun 2018 14:01:40 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933612AbeFVVAq (ORCPT + 99 others); Fri, 22 Jun 2018 17:00:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:47558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754184AbeFVVAq (ORCPT ); Fri, 22 Jun 2018 17:00:46 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C380248DA; Fri, 22 Jun 2018 21:00:44 +0000 (UTC) Date: Fri, 22 Jun 2018 17:00:42 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Joel Fernandes , Byungchul Park , Byungchul Park , jiangshanlai@gmail.com, josh@joshtriplett.org, Mathieu Desnoyers , linux-kernel@vger.kernel.org, kernel-team@lge.com, luto@kernel.org Subject: Re: [RFC 2/2] rcu: Remove ->dynticks_nmi_nesting from struct rcu_dynticks Message-ID: <20180622170042.4adfbe21@gandalf.local.home> In-Reply-To: <20180622205813.GV3593@linux.vnet.ibm.com> References: <1529484440-20634-1-git-send-email-byungchul.park@lge.com> <1529484440-20634-2-git-send-email-byungchul.park@lge.com> <20180620145814.GQ3593@linux.vnet.ibm.com> <20180620164902.GW3593@linux.vnet.ibm.com> <20180622055659.GA255098@joelaf.mtv.corp.google.com> <20180622132843.GN3593@linux.vnet.ibm.com> <20180622181916.GA13628@joelaf.mtv.corp.google.com> <20180622205813.GV3593@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Jun 2018 13:58:13 -0700 "Paul E. McKenney" wrote: > Something like this: > > IRQ entered > > And never exited. Ever. I actually saw this in 2011. I still believe this was actually a bug. And perhaps you made the RCU code robust enough to handle this bug ;-) > > Or something like this: > > IRQ exited > > Without a corresponding IRQ enter. > > The current code handles both of these situations, at least assuming > that the interrupt entry/exit happens during a non-idle period. > > > > So why this function-call structure? Well, you see, NMI handlers can > > > take what appear to RCU to be normal interrupts... > > > > > > (And I just added that fun fact to Requirements.html.) > > > > Yes, I'll definitely go through all the interrupt requirements in the doc and > > thanks for referring me to it. > > My concern may well be obsolete. It would be good if it was! ;-) I'd love to mandate that irq_enter() must be paired with irq_exit(). I don't really see any rationale for it to be otherwise. If there is a case, perhaps it needs to be fixed. -- Steve