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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 9EF8BC47404 for ; Fri, 11 Oct 2019 11:25:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7FCD0214E0 for ; Fri, 11 Oct 2019 11:25:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727925AbfJKLZd (ORCPT ); Fri, 11 Oct 2019 07:25:33 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60390 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727541AbfJKLZd (ORCPT ); Fri, 11 Oct 2019 07:25:33 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1iIt2z-0007LM-9u; Fri, 11 Oct 2019 13:25:25 +0200 Date: Fri, 11 Oct 2019 13:25:25 +0200 From: Sebastian Siewior To: Thomas Gleixner Cc: Matthew Wilcox , LKML , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Anna-Maria Gleixner , Steven Rostedt , Julia Cartwright , Jan Kara , Theodore Tso , Alexander Viro , Jan Kara , Mark Fasheh , Joseph Qi , Christoph Hellwig , Joel Becker Subject: Re: [PATCH] fs/buffer: Make BH_Uptodate_Lock bit_spin_lock a regular spinlock_t Message-ID: <20191011112525.7dksg6ixb5c3hxn5@linutronix.de> References: <20190820170818.oldsdoumzashhcgh@linutronix.de> <20190820171721.GA4949@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-08-20 20:01:14 [+0200], Thomas Gleixner wrote: > On Tue, 20 Aug 2019, Matthew Wilcox wrote: > > On Tue, Aug 20, 2019 at 07:08:18PM +0200, Sebastian Siewior wrote: > > > Bit spinlocks are problematic if PREEMPT_RT is enabled, because they > > > disable preemption, which is undesired for latency reasons and breaks when > > > regular spinlocks are taken within the bit_spinlock locked region because > > > regular spinlocks are converted to 'sleeping spinlocks' on RT. So RT > > > replaces the bit spinlocks with regular spinlocks to avoid this problem. > > > Bit spinlocks are also not covered by lock debugging, e.g. lockdep. > > > > > > Substitute the BH_Uptodate_Lock bit spinlock with a regular spinlock. > > > > > > Signed-off-by: Thomas Gleixner > > > [bigeasy: remove the wrapper and use always spinlock_t] > > > > Uhh ... always grow the buffer_head, even for non-PREEMPT_RT? Why? > > Christoph requested that: > > https://lkml.kernel.org/r/20190802075612.GA20962@infradead.org What do we do about this one? > Thanks, > > tglx Sebastian