Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp179453ybk; Tue, 19 May 2020 19:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoYSUi4i+J/1s/skf+0zjC+RDaCf07Z7QgSuh0yGkQ7Th6hQ1hwwYrFKsMF2TIGO6kd2Jt X-Received: by 2002:a05:6402:22a6:: with SMTP id cx6mr1370334edb.76.1589940555974; Tue, 19 May 2020 19:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589940555; cv=none; d=google.com; s=arc-20160816; b=0RBUkiAbNnDIyy5i3iHY2dQgeC4qSV65WuuyeOB70MU+8CgtJgEmeekCOoPgNu00sG r1fJ79rTxRSxdzNqKMIVk6G6n4r+AjhLlg1aRmfCHC/8i8xq5v3tqARfUNPEIT13aSqr n8dHC02PGAHYEyDrcFOIxBQGvf5yhs/ZFg9t1MuK/Jn/DGiPtr/6LNRWZDgkNdd/VLkI fgtO74LYHteM7ovMKU9gmOmrmAPYzHZ9XMTUi7yUJCkPmDdl0QVVOV83PpqtDgfIu4AK YkBdUm3DZMvuOpwBmrOUKKmerj4I5vwhAmbFN5MuuoPRNUipxHVYMim9QnFp9VDxubHe RkIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Lz/fgGTegv3Vw8bKhUOxZNBgmTWewtj8bcybw8IaH6Y=; b=yjegp012RjSaTFweusi47by3Nc2vXL1BnUMW5aeQR/rImozXiFaYYgtQdmngBmiA4c FFDs/FAhQ0HCvO2NtNEZqLOy7TF/9p176PdcWkwH/Cird6JXLgVSkSgKZdiQFC/hc+7x cz9xu/kK0XlMVDe1R/j+iuexDNLKe/OVIRTbfxHM2952Zvk3QTp4ePy4zRY5NsQAsaAQ dUNpx7SzVjMcY0hwT47GIsGq1m1Q+qzrFqd9gO9yMSj8RBa8/OyHO6lAoygfh3zJpj52 l+E+CljsZpU9VN7c/SU+5VhWexV3sQliThwRUWVQjx/9/90T7iuwvuZScaBPG2OUFdCF M88w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ht9zTnd8; 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 rs20si1000291ejb.76.2020.05.19.19.08.52; Tue, 19 May 2020 19:09:15 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ht9zTnd8; 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 S1728315AbgETCF0 (ORCPT + 99 others); Tue, 19 May 2020 22:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbgETCF0 (ORCPT ); Tue, 19 May 2020 22:05:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10EC3C061A0E; Tue, 19 May 2020 19:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Lz/fgGTegv3Vw8bKhUOxZNBgmTWewtj8bcybw8IaH6Y=; b=Ht9zTnd8qZSO8pVr+tEfSmR7ng 87al1q64oL/b+1Fm1HtRX15bBmhD/rPl/xZI9GlNYJZbhIqTfZhujWsh7CgimT/ZhhctMxkV4LJte w3KzxbTjh8j2sgd6qy8hkvnndnc+S/jeSuutx5KESxbaiP1FgX0UUKE60TzG/jUdVTrAl3RQ9FKa1 3tN/iB+D+HGOpBuyTR369QYk4CLqGkQXSnQhOwhakuWf2+SxFK7Hl0gIdJ7RNbQZ2oigBUkOtzj5E ZcBJJh0BbNItr2Gd0BkRMQbUS9vCWFGPTAq62O6IW8+kW5zZFcKrm3o4QieUCg2C8rlCVO+V6Lkxq hkQPChaQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jbE6e-0004S2-5O; Wed, 20 May 2020 02:05:16 +0000 Date: Tue, 19 May 2020 19:05:16 -0700 From: Matthew Wilcox To: Steven Rostedt 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: <20200520020516.GB16070@bombadil.infradead.org> References: <20200519201912.1564477-1-bigeasy@linutronix.de> <20200519201912.1564477-3-bigeasy@linutronix.de> <20200519204545.GA16070@bombadil.infradead.org> <20200519165453.0a795ca1@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200519165453.0a795ca1@gandalf.local.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 19, 2020 at 04:54:53PM -0400, Steven Rostedt wrote: > 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 ;-) ... this is why we have the convention to cc everybody on all the patches. > 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. Thats asking too much of the random people cc'd on random patches. What is b4 anyway?