From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2362C32750 for ; Fri, 2 Aug 2019 09:09:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8713B21783 for ; Fri, 2 Aug 2019 09:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732903AbfHBJJB (ORCPT ); Fri, 2 Aug 2019 05:09:01 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:39083 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727024AbfHBJJB (ORCPT ); Fri, 2 Aug 2019 05:09:01 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1htTXb-0008Bx-4U; Fri, 02 Aug 2019 11:07:59 +0200 Date: Fri, 2 Aug 2019 11:07:53 +0200 (CEST) From: Thomas Gleixner To: Christoph Hellwig cc: LKML , Peter Zijlstra , Ingo Molnar , Sebastian Siewior , Anna-Maria Gleixner , Steven Rostedt , Julia Cartwright , Jan Kara , Theodore Tso , Matthew Wilcox , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Jan Kara , Mark Fasheh , Joseph Qi , Joel Becker Subject: Re: [patch V2 0/7] fs: Substitute bit-spinlocks for PREEMPT_RT and debugging In-Reply-To: <20190802075612.GA20962@infradead.org> Message-ID: References: <20190801010126.245731659@linutronix.de> <20190802075612.GA20962@infradead.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-738874475-1564736879=:2285" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-738874475-1564736879=:2285 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Christoph, On Fri, 2 Aug 2019, Christoph Hellwig wrote: > did you look into killing bіt spinlocks as a public API instead? Last time I did, there was resistance :) But I'm happy to try again. > The main users seems to be buffer heads, which are so bloated that > an extra spinlock doesn't really matter anyway. > > The list_bl and rhashtable uses kinda make sense to be, but they are > pretty nicely abstracted away anyway. The remaining users look > pretty questionable to start with. What about the page lock? mm/slub.c: bit_spin_lock(PG_locked, &page->flags); Thanks, tglx --8323329-738874475-1564736879=:2285--