Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp448983img; Thu, 21 Mar 2019 01:29:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEg8W00W6N79QB0REb/mRfNe0bdvdyLt5MA4XFmM0C1PEociv/LIQQkOSoWPDWMKQWZh9s X-Received: by 2002:aa7:8b0c:: with SMTP id f12mr2154080pfd.154.1553156987949; Thu, 21 Mar 2019 01:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553156987; cv=none; d=google.com; s=arc-20160816; b=vzCVQTof3fuiWafChAnQOkU9yDCSGf5OOPRddsE8ZsMaTn6gc2NCpWaXyfum6EPIBY 1Q7GYJhn3Z2yfEzQsrIrjKWXH+2zklC6GcIEo7daN1uIqSV6JfBiD/I4S7kgB3DBfdhL FAVzcERaWybOjtKvnsJHY8oYLAD577qkiIJGxlYXugaS5y9cbrjOnQll4aoM9prNfTRe PSEUwWpzg+R1FHRpfrcaA/A0Jf1QyOE/iJ/yMLPRviqCe1w8QJ5i/ay6SNfHIUrFLda0 tHb4jArPtXvGJN1OgZa/GpQ4DPxad+4JeZ027xCuXP/hpifEpK05is1cbQVoHR/hTojb 80Mg== 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; bh=itidgV1dirs6mB11jYVnXjopPyJGFELmPkVbHlKiiuc=; b=imS5ZhQtwN58AJe/CeUv3xXThE2JAZ73rVtRNhOkcAxfXw/3w5pdAs76JfLzY2qj8G xdhCUkko2l0i24j8yrs+xR6WKKv3+DTe8JQjXMIeirBYvZf5Elk1tuCjA8To7uhDg2nW e1toRJKrJ7yg+dCSMdkU73wq1S8n8KQUqii+9vDy74Zuoh0stPkMPAZPpr0Upay/fsi8 mQSx0n/nI3G3EPHtMYkIUIYXXB5TSYPmQPZqLMa3mDq0F+Yyq/jiZbIpsbVNBnEJluQH MoOkzFDjw26ySq0vYE8B1QD/x+3cffg9L8XSGgeY61Hi3Ldfz8JOJj+8OUsckT4mqQho XGJg== 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 bi12si3840184plb.205.2019.03.21.01.29.32; Thu, 21 Mar 2019 01:29:47 -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 S1728002AbfCUI1m (ORCPT + 99 others); Thu, 21 Mar 2019 04:27:42 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37283 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727881AbfCUI1m (ORCPT ); Thu, 21 Mar 2019 04:27:42 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1h6t33-0007FC-TW; Thu, 21 Mar 2019 09:27:38 +0100 Date: Thu, 21 Mar 2019 09:27:37 +0100 From: Sebastian Andrzej Siewior To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , tglx@linutronix.de, Mike Galbraith Subject: Re: [PATCH v3] rcu: Allow to eliminate softirq processing from rcutree Message-ID: <20190321082737.t5jhdyuartimamu2@linutronix.de> References: <20190320154440.GA16332@linux.ibm.com> <20190320160547.s5lbeahr2y4jlzwt@linutronix.de> <20190320161500.GK4102@linux.ibm.com> <20190320163532.mr32oi53iaueuizw@linutronix.de> <20190320173001.GM4102@linux.ibm.com> <20190320175952.yh6yfy64vaiurszw@linutronix.de> <20190320181210.GO4102@linux.ibm.com> <20190320181435.x3qyutwqllmq5zbk@linutronix.de> <20190320211333.eq7pwxnte7la67ph@linutronix.de> <20190320234601.GQ4102@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190320234601.GQ4102@linux.ibm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-03-20 16:46:01 [-0700], Paul E. McKenney wrote: > Thank you! I reverted v2 and applied this one with the same sort of > update. Testing is going well thus far aside from my failing to add > the required "=0" after the rcutree.use_softirq. I will probably not > be the only one who will run afoul of this, so I updated the commit log > and the documentation accordingly, as shown below. perfect, thank you. > Thanx, Paul > > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > index f46b4af96ab9..b807204ffd83 100644 > --- a/kernel/rcu/tree_plugin.h > +++ b/kernel/rcu/tree_plugin.h > @@ -629,7 +609,10 @@ static void rcu_read_unlock_special(struct task_struct *t) > /* Need to defer quiescent state until everything is enabled. */ > if (irqs_were_disabled) { > /* Enabling irqs does not reschedule, so... */ > - raise_softirq_irqoff(RCU_SOFTIRQ); > + if (!use_softirq) that exclamation mark needs to go :/ > + raise_softirq_irqoff(RCU_SOFTIRQ); > + else > + invoke_rcu_core(); > } else { > /* Enabling BH or preempt does reschedule, so... */ > set_tsk_need_resched(current); Sebastian