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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0AD0C433EF for ; Mon, 11 Jul 2022 05:16:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229490AbiGKFQE (ORCPT ); Mon, 11 Jul 2022 01:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiGKFQD (ORCPT ); Mon, 11 Jul 2022 01:16:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989AF14030 for ; Sun, 10 Jul 2022 22:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=0el4Y0p0idmzAjcaHhkQx+ZApFhqrKCBDW9V+myNSyw=; b=qeRFeprw1HvoyQy16SO7MXpw10 BNCGqX2ffShtjLY2ST62ktR6Qj5KIx4weVshuS0sZafO2cJT6cNiUKQOZZPcBhogDGhGwS72Mfu9Y i1Q/za6L1kBdznRl1qLWcauoioxgBCpHj1b3JGofqKRCQdiMaS9pk4G0w6LG6a0+MInZuyNZxO60j H22Gs/rYxjBzOqlkbPuyHjAd3j0ZgQidMN9Wv/+q3+Z17nflGfPaj2DxtpNNH4IGmWiNvBsqZNDzW qDFP8CpCQQaGL4dZV3G0peGEX0ku/OVyyEwxidZBP+WCYUJx9iJ1bmwNgccWtjanKxe1Pih5ygaFi LPPQu+Vw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAlm5-00G4ts-Fy; Mon, 11 Jul 2022 05:16:01 +0000 Date: Sun, 10 Jul 2022 22:16:01 -0700 From: Christoph Hellwig To: Dave Chinner Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org Subject: Re: [PATCH 6/6] xfs: lockless buffer lookup Message-ID: References: <20220627060841.244226-1-david@fromorbit.com> <20220627060841.244226-7-david@fromorbit.com> <20220707123633.GM227878@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220707123633.GM227878@dread.disaster.area> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Thu, Jul 07, 2022 at 10:36:33PM +1000, Dave Chinner wrote: > > > > Hmm, so what still uses pag_buf_lock? Are we still using it to > > serialize xfs_buf_rele calls? > > slow path lookup/insert and xfs_buf_rele calls. Note that we might be able to eventually remove the locking in rele if we switch the lookup slow path to use atomic_inc_unless_zero as well. But it would need a very careful audit.