Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5616229ybe; Tue, 17 Sep 2019 10:43:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtqaM2qOmAHAG67Eu0QfttKTdzSzJYCn6xqPM7ZiahssysK+7vTA+qZfc0k2dw2O4fYMay X-Received: by 2002:a50:acc1:: with SMTP id x59mr6037480edc.278.1568742192408; Tue, 17 Sep 2019 10:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568742192; cv=none; d=google.com; s=arc-20160816; b=KTjA4FOCkPqtciw3AfswLzuhOaQIqGRU6elJWdSvQluZRPRgl5gWeatxSJZJ8yZcTA d36h68Xy2/ZvvjAIOfF5ViUe+EyeLv+7VNkcMACsG7OGKL4fABEr+Jr3YL/cJ9GS47pF Bgl0xbYBsGLhi9U0TX63RAfqTByVDwZFYmg89t6kvwEBX/WBa5zZKYTwE+VdMp0FVKP1 fyOeP7qQq/xCEhZuj7VkUKuE7isaj80TAEv+U3txDcyjEH0jQdayuEE1nc1Kz/yh14JL atfRaEwHivfUKVjPCq9U2mwHjFUSIJVrsMndrvWrwol5eXaYO6ruY8yHFX4pu+ENFrXD YzHw== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=yQigFnBgXAWHtokG3xW9cQuzdZNoUJzdqYQ9vjsQTuE=; b=DTL0GAUKIxbmFJvBmBHmMN71K4E8soNUklPlJ+EIvp+vxo0HJfEcVbAM7rhZIcQPUz ehG0O/pGsT5gWP7CpixABQ2ai6bbBfqpLQGD8fXt5iJUUJWj27gff9V0HcMCp7BTtLBd e7gbFV4Rw6/S3n5xHEPJ2rDBSl86lD9v/e4eJmS/lGvHKCKfJ+K7MMHT6z+R9woucoZB Y+yHVGvbGAijHXwskUrwOutq9l2yeoslRxJVUkv+EsE5crkA817ugS5n0YrV6RO+gLDh /HEiwWeboAsX4xFlvKZesNR8EErdRlINAdgFiinIib45sRG3HIl0d8qRU3QSMAcnUcVF HzFg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 52si1696465edz.413.2019.09.17.10.42.48; Tue, 17 Sep 2019 10:43:12 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727069AbfIQOIt (ORCPT + 99 others); Tue, 17 Sep 2019 10:08:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59758 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfIQOIt (ORCPT ); Tue, 17 Sep 2019 10:08:49 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DCD684E8AC; Tue, 17 Sep 2019 14:08:48 +0000 (UTC) Received: from ovpn-117-172.phx2.redhat.com (ovpn-117-172.phx2.redhat.com [10.3.117.172]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EDC460606; Tue, 17 Sep 2019 14:08:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH RT v3 4/5] rcu: Disable use_softirq on PREEMPT_RT From: Scott Wood To: Sebastian Andrzej Siewior Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E . McKenney" , Joel Fernandes , Thomas Gleixner , Steven Rostedt , Peter Zijlstra , Juri Lelli , Clark Williams Date: Tue, 17 Sep 2019 09:08:45 -0500 In-Reply-To: <20190911165729.11178-5-swood@redhat.com> References: <20190911165729.11178-1-swood@redhat.com> <20190911165729.11178-5-swood@redhat.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 17 Sep 2019 14:08:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-09-11 at 17:57 +0100, Scott Wood wrote: > kernel/rcu/tree.c | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index fc8b00c61b32..ee0a5ec2c30f 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -98,9 +98,14 @@ struct rcu_state rcu_state = { > /* Dump rcu_node combining tree at boot to verify correct setup. */ > static bool dump_tree; > module_param(dump_tree, bool, 0444); > -/* By default, use RCU_SOFTIRQ instead of rcuc kthreads. */ > -static bool use_softirq = 1; > +/* > + * By default, use RCU_SOFTIRQ instead of rcuc kthreads. > + * But, avoid RCU_SOFTIRQ on PREEMPT_RT due to pi/rq deadlocks. > + */ > +static bool use_softirq = !IS_ENABLED(CONFIG_PREEMPT_RT_FULL); > +#ifdef CONFIG_PREEMPT_RT_FULL > module_param(use_softirq, bool, 0444); > +#endif Ugh, that should be s/ifdef/ifndef/ -Scott