Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp4935ybk; Tue, 19 May 2020 13:56:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ1yuvp4wfWKjbsfU3q15++rCNo0NTS1ju63d1SLMzFsEh7QhJvHm02wlS7aKjXk9EANXW X-Received: by 2002:a17:906:935a:: with SMTP id p26mr1021901ejw.103.1589921808573; Tue, 19 May 2020 13:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589921808; cv=none; d=google.com; s=arc-20160816; b=ZcWPyhJjzHj6ND70e+pQf6fTNH5WbYbBqf/3ufFL6SEOtIPLEKpUYjPzkNY2Y0j6GI 2fTdo5IwCsC+YyNRvVes2hm1IrPJpS+IO0VaZ5OtRiVXjN6gtSbrkTrugBKnidJNxS4I fBljUZjK0GlI23trbT+AXRf+68N/3X1U7H4ZB7JMMTMd1tpt0+e+toMzmAZPAJcF1BOb DyO5kAZ1PTBw7F9TIKaSlMpK9utl6ZQFqkWVE/DwbBvDuejAnh3xE92GecDDQnTj5OhJ r1wY6FQmKri3BY4U7+S4u7KtZ3mkFqaO9/978udz4B50GsZozYCPTRbiREJx45ZCCHor aRWQ== 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; bh=PC94WuUCOKUuwheBR8pjvzGAbagtS2CwS4vhsgBnGWk=; b=R8XWVbPtyzkLLQBD2sJBqkJhmjFzh6YrNZV4Ru6HTgXcD5xyAjMmBsI3cBWdXvGF5M YGI9Q2BqY8prqXhe0kxa7rqKWKTQksnZDUKa1wyKa6+lKNAVhKh8Wv9tAKM20lglmwpC OwSyvL+q3ZvQ1hAik0k5RpW6xM3p9IOThxgluVcL19ZbBInUOPFkdcOUzBojwOYsnt7b Krm2OzyeSLr99H/YYzzWyIVHfMyYqaMselUCAGAAszvQeU0eO6eCeAs37asYawQTmYXv e0Ceks2Vm611f8wty06rRgtMNAs9zTRVYL8IkBq1ML6bTiiQL/ypWg/Eu3kh6QitHZJC FTSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b27si540675ejd.587.2020.05.19.13.56.24; Tue, 19 May 2020 13:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726369AbgESUy4 (ORCPT + 99 others); Tue, 19 May 2020 16:54:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:51490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbgESUy4 (ORCPT ); Tue, 19 May 2020 16:54:56 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 BEFF62075F; Tue, 19 May 2020 20:54:54 +0000 (UTC) Date: Tue, 19 May 2020 16:54:53 -0400 From: Steven Rostedt To: Matthew Wilcox Cc: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner , "Paul E . McKenney" , Linus Torvalds , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/8] radix-tree: Use local_lock for protection Message-ID: <20200519165453.0a795ca1@gandalf.local.home> In-Reply-To: <20200519204545.GA16070@bombadil.infradead.org> References: <20200519201912.1564477-1-bigeasy@linutronix.de> <20200519201912.1564477-3-bigeasy@linutronix.de> <20200519204545.GA16070@bombadil.infradead.org> X-Mailer: Claws Mail 3.17.3 (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 Tue, 19 May 2020 13:45:45 -0700 Matthew Wilcox wrote: > On Tue, May 19, 2020 at 10:19:06PM +0200, Sebastian Andrzej Siewior wrote: > > The radix-tree and idr preload mechanisms use preempt_disable() to protect > > the complete operation between xxx_preload() and xxx_preload_end(). > > > > As the code inside the preempt disabled section acquires regular spinlocks, > > which are converted to 'sleeping' spinlocks on a PREEMPT_RT kernel and > > eventually calls into a memory allocator, this conflicts with the RT > > semantics. > > > > Convert it to a local_lock which allows RT kernels to substitute them with > > a real per CPU lock. On non RT kernels this maps to preempt_disable() as > > before, but provides also lockdep coverage of the critical region. > > No functional change. > > I don't seem to have a locallock.h in my tree. Where can I find more > information about it? PATCH 1 ;-) https://lore.kernel.org/r/20200519201912.1564477-1-bigeasy@linutronix.de With lore and b4, it should now be easy to get full patch series. -- Steve > > > +++ b/lib/radix-tree.c > > @@ -20,6 +20,7 @@ > > #include > > #include > > #include > > +#include > > #include /* in_interrupt() */ > > #include > > #include