Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5671584ybe; Tue, 17 Sep 2019 11:37:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwspw/x/GAMLiL0+QevtzJzregY6GIp4eTuKp9lYK9kUZqEy0kCAFRynVmpC4joe7/60LNB X-Received: by 2002:a17:906:fd0:: with SMTP id c16mr6108698ejk.213.1568745423956; Tue, 17 Sep 2019 11:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568745423; cv=none; d=google.com; s=arc-20160816; b=EPXmjfEx7VjK9lUd3vorwKKJHLA9ETXiHlykuO017AXlXy1Fm9YLEw+Ucr4Qk2+cte f4KCAgdEWXcWsxc2T3XeYxgWiF5G1atoKcXNnoBQvVTdtPmujdZsjZKhDCiJmZ6TDBM3 EUnJW5k/MJFcdt8TU6ECYdjwI1860GVanD2QDN+Hl9ubA72dkIP/0k3hPbqxgSVem6Oo tQjk7UX5Sr3M7A3+S+QHed7L3pLMYVce66U1OYSW9C46GevuN/kwwNO1ISDNkFyu/iPR ig1vFyrONlNi/We/sAUxZFO9e6WYSddIiKTZFFfCIMDRC3pDt8u8qzL3WSXZuHjbNfDO 91Xg== 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=PnUy37zE88mRRIRchjL3D6vK0zyoqBvt+kVhr+6Xd/s=; b=jPlYPL46u2kBcQEacc+OA1HbM+WxD02OwX7cfRcPcSRkj0lM/6bvWsaM2q8ix2ugDT 45GCkF6/5XiC/ePyBWELcHfu0zL9FlczVNUb3D6ft0uZnzpCAjZTjw3a2ry1W/nIAj5X pIMQgEvyXJ+G4jmeNEgTRyW+vPX1U9D8eS2CESGMti8W7yW32H7ocIUpSIZVLSmjkC3b UQbVYj6dweCn6cAelvr2pbVW6gpbAslqHjSjnQZ4ayUxH5f+JsoOAMkcMyohEha4bDfh xHdL/UtsU1kYNDfEc5/01N0n8Xvz6vOd0JsTYF8eoAF3qrPpYtIjbnIcwGWqne3NP2Nl fhFA== 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 n2si1808950edq.264.2019.09.17.11.36.40; Tue, 17 Sep 2019 11:37:03 -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 S1730237AbfIQQM6 (ORCPT + 99 others); Tue, 17 Sep 2019 12:12:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30167 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbfIQQM6 (ORCPT ); Tue, 17 Sep 2019 12:12:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E9374302C08E; Tue, 17 Sep 2019 16:12:57 +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 1811262660; Tue, 17 Sep 2019 16:12:49 +0000 (UTC) Message-ID: Subject: Re: [PATCH RT v3 1/5] rcu: Acquire RCU lock when disabling BHs 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 11:12:48 -0500 In-Reply-To: <20190917144252.v34ina4z2ydchoit@linutronix.de> References: <20190911165729.11178-1-swood@redhat.com> <20190911165729.11178-2-swood@redhat.com> <20190917074456.yj7t3wdwuhn3zcng@linutronix.de> <63b430ca2f067e61bef1c387fad782ab4a2c1ed3.camel@redhat.com> <20190917144252.v34ina4z2ydchoit@linutronix.de> 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Tue, 17 Sep 2019 16:12:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-09-17 at 16:42 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-17 09:06:28 [-0500], Scott Wood wrote: > > Sorry, I missed that you were asking about rcu_read_lock_bh() as > > well. I > > did remove the change to rcu_read_lock_bh_held(). > > Sorry for not being clear here. > > > With this patch, local_bh_disable() calls rcu_read_lock() on RT which > > handles this debug stuff. Doing it twice shouldn't be explicitly > > harmful, > > but it's redundant, and debug kernels are slow enough as is. > > rcu_read_lock() does: > > __rcu_read_lock(); > > __acquire(RCU); > > rcu_lock_acquire(&rcu_lock_map); > > RCU_LOCKDEP_WARN(!rcu_is_watching(), > > "rcu_read_lock() used illegally while idle"); > > __acquire() is removed removed by cpp. > That RCU_LOCKDEP_WARN is doing the same thing as above and redundant. > Am I right to assume that you consider > rcu_lock_acquire(&rcu_bh_lock_map); > > redundant because the only user of that is also checking for > rcu_lock_map? Yes. -Scott