Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3618361imm; Mon, 25 Jun 2018 01:29:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIMnfyUNPRWSWLeh3EyoAPGalYELLsEIJFq8bK7TwsmRbNyvBDrs2HwrLoxyRrg/2g1ylXR X-Received: by 2002:a62:c1c5:: with SMTP id i188-v6mr7784190pfg.155.1529915364155; Mon, 25 Jun 2018 01:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529915364; cv=none; d=google.com; s=arc-20160816; b=rpmlOyXquZg7qrCMSts04NyA6EtuqIbuHdxI02XLfdaUFrFT5mVbQ0eZhmuBBwjjlC /ss1tfamSfy4Fdkhs/plwHqZi9Rb0rqwIKtkTqN3JG9/OE8tqUq3Br0KL7e+GcuIDCqC cUWFsV35cjeAN1exKfqMtW/c8muQ9rclrLIuJtXfNZw0GX3gA7rjxpBaBG66uON1HXVX b4SiK0DRaRkYM3wunpIwiSbnAp/FbuAn+qacOrYa13GzXkoxKR9hhcI31P4IlNoa63pe LAW7tytCdqqr89h8V2OLTSxfB26tSlraCoKcgKChIN9hp1JJQz4yuTyKdvdh6Lf/eKLO gK9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mex85nkVCJw062lCM0JxcGNSBM1SCSZ4jr/CimvsYXY=; b=IlswUQ0r8fL3R5izNjzuw3ul3uXhCdeuH1VSWTmtN6k3M3Tvt1v4kcZkTEZWPZqEI2 m4W/yZDIUHnvMaLjtpkbfitaiz20q+NvXjAynfVe6HOGYwlK3xBxijefqFWxS1Z2KYiz Q+XFTf5CwLccfGXsB1gbS2Pr9PV+CLeqWL360Hd0nZr1SoiiTK+bS1b1tyUXMsfkJVs0 GMYcuOfocxlzFbSaZtHiS3VyoN/JGXg9W4n6Km77Pe9bo/vUe93HvGjWmxvCXPf5BTpO qL1sKNXQUDWgUeWy4JyPSNLJY6QE0T7Qm+ymepmBf04cjwWQKCHPAPr/x/+lOAjGQaaI SFPg== 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 e72-v6si13979631pfd.352.2018.06.25.01.29.09; Mon, 25 Jun 2018 01:29:24 -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 S1754393AbeFYI2e (ORCPT + 99 others); Mon, 25 Jun 2018 04:28:34 -0400 Received: from lgeamrelo11.lge.com ([156.147.23.51]:57531 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753154AbeFYI2c (ORCPT ); Mon, 25 Jun 2018 04:28:32 -0400 Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.51 with ESMTP; 25 Jun 2018 17:28:31 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO X58A-UD3R) (10.177.222.33) by 156.147.1.121 with ESMTP; 25 Jun 2018 17:28:30 +0900 X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Mon, 25 Jun 2018 17:28:24 +0900 From: Byungchul Park To: Joel Fernandes Cc: Steven Rostedt , "Paul E. McKenney" , 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: <20180625082824.GB21377@X58A-UD3R> 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> <20180622143247.781028b1@gandalf.local.home> <20180622200548.GA114655@joelaf.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622200548.GA114655@joelaf.mtv.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 01:05:48PM -0700, Joel Fernandes wrote: > On Fri, Jun 22, 2018 at 02:32:47PM -0400, Steven Rostedt wrote: > > On Fri, 22 Jun 2018 11:19:16 -0700 > > Joel Fernandes wrote: > > > > > Sure. So in a later thread you mentioned "usermode helpers". I took a closer > > > look at that subsystem, and it seems you can execute usermode helpers from > > > atomic sections with help of UMH_NO_WAIT flag. > > > > > > Then I checked where this flag is used and it turns out its from the > > > mce_work_trigger function in x86/kernel/cpu/mcheck/dev-mcelog.c which can be > > > called infact from an interrupt context (mce_notify_irq). > > > > > > Is this the usecase you remember causing this weird transitions to userspace? > > > > But this case still looks like it uses work queues, it just doesn't > > wait for the result. > > > > I'll have to look at the code from what it looked like back in 2011, to > > see if there was an actual issue here back then. > > Good point Steve. So I guess in the current kernel sources, there's no code > that uses UMH in IRQ context AFAICT. I'll go through the google group thread > Paul pointed as well to study the history of the problem a bit more. Me too. Good discussion we had thanks to you, Joel. > thanks, > > - Joel