Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1023601imm; Fri, 22 Jun 2018 09:04:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKICjEXU5I7AT20vCyB2jN8BED/NhU/OgrW6AAJbY/LVE8gfXVS0dQ1tOuEwIp64MM2e5qw/ X-Received: by 2002:a65:62cd:: with SMTP id m13-v6mr2017242pgv.207.1529683440667; Fri, 22 Jun 2018 09:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529683440; cv=none; d=google.com; s=arc-20160816; b=DRJZOjFXejKw1pVSsQFDOKy5tWsA9xMlhXdELYgA+ALdpY6Z1LGMVIXjsTTD0W9Can alP64Sun7+vkhkJV7/2RMmYRTg5YvCuR8GrWBkdy7Xu+BDiL9hBP7/swl7GG4G+ksD4r mvmTuPnJTLiwfb00ojVB/F9vcNEN/Z7Bi8TLODPx6klO6VnEhvecPPKAzxlXpQy9lsuE EoD9ttjuN9DBtWVQ+0JIeCKVDxJWX1d2rpCkwu9zkOKW18R5XnAHHN6zuuLw5CfVHSqs 4/tVKNYXXLL8q2bDsxH4KGriF1honmiso7Yl+nkLVOQosC3YZmpI/An/MLJbsrhFpDlb 1E7A== 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=qC1thwLmYiRbhxnhhaWx6Y3xw0NcPx2hswVN3tsqvJo=; b=GbXdXc6ewB1kt6GYvOkszJDf7bwYxuOTTEHxUBHtBLJ5uIOd7MURctvqzuvhTJXOUV FfXOhxpUYz9tAI80r4O2Dtyo3YrnviO07fAvjaU0UhWF9dpKJgrPOYtlo1FHW7Ku5vyr djZ6gWEHAHQx7KEUCgfoFL18e8WBuIsNlx8W/7/7R8IzN+r800K+v1CHBeLaQWPRc+Sk 0PxHiJkdQgD3dizX9ki3l8RCTK+QAdqIHHu6DEFkt2ihO4SqNKa9a7iDTr2PbADt3/uF HmHN/WpPj0rhBF2OkG2aknu/V5dVkuFui37UASdgwf/+/JxvOSqBm5WzeEZMXl9xIZm6 VnDw== 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 p7-v6si7531579plk.293.2018.06.22.09.03.45; Fri, 22 Jun 2018 09:04:00 -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 S1754290AbeFVQBy (ORCPT + 99 others); Fri, 22 Jun 2018 12:01:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:46762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754129AbeFVQBw (ORCPT ); Fri, 22 Jun 2018 12:01:52 -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 7F3FC24555; Fri, 22 Jun 2018 16:01:51 +0000 (UTC) Date: Fri, 22 Jun 2018 12:01:49 -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: <20180622120149.7d5396d5@gandalf.local.home> In-Reply-To: <20180622132843.GN3593@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> 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 06:28:43 -0700 "Paul E. McKenney" wrote: > It has been some years since I traced the code flow, but what happened > back then is that it switches itself from an interrupt handler to not > without actually returning from the interrupt. This can only happen when > interrupting a non-idle process, thankfully, and RCU's dyntick-idle code > relies on this restriction. If I remember correctly, the code ends up > executing in the context of the interrupted process, but it has been some > years, so please apply appropriate skepticism. If irq_enter() is not paired with irq_exit() then major things will break. Especially since that's how in_interrupt() and friends rely on to work. Now, perhaps rcu_irq_enter() is called elsewhere (as a git grep appears it may be), and that rcu_irq_enter() may not be paired with rcu_irq_exit(). But that's not anything to do with the irq_enter() and irq_exit() routines being paired or not. -- Steve