Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31913843rwd; Fri, 7 Jul 2023 06:17:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFIy9xAneUYWgIYj7I1XMhJwfTAsE0EfIY5rTxt2EjmwIJGWc+IWhdqlhboSddptQgf8Teo X-Received: by 2002:a05:6a20:3d01:b0:125:9d2e:ae1a with SMTP id y1-20020a056a203d0100b001259d2eae1amr12548970pzi.9.1688735853991; Fri, 07 Jul 2023 06:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688735853; cv=none; d=google.com; s=arc-20160816; b=hA/RBxbvEADwA69ZakkAEhe4L1dAPSQ8nL6ImZcR/QusVOMQibwdf3XPXtFPSGaCDg FXrosn44f04PmxAuCUpCm74txy4L+3Nr1UmDdfo3idLNFuPNMkuBf7lVNB/oAPE1VYFx c1POkUHYYLGvG+WBryWXPLJO/9No3asnhYQw88FhclM0nSAqHYiEA9+NtDnZlReiXr9G L94asr7Uxm+2liNodgiJEB/zLutLsNOq1TR5MOLxTrCC32NnrMFzN/tTZnakMlC/idzv MYFX2M1oTBQjWy/kEZyXC//Xq4j683ELykRQyrkmSa4t2aUQxfoiUjP9J/hzIIOU/zK2 Olhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=UobiIK3q2vMGQKwcTXx1XKYb4NcuR8QXMg/mvRkRX3c=; fh=LAORvJgDTj/WJ6p7fWX0Tws8XPbVtsK+ice5RjxlQ20=; b=AT68rOrFwSxcAXiLJhkF/pbFItnZtEaCvD6MnyAzXIvCp6WnzvHAmqecwhnPthkFcI 6cvXqIOuk2C1vjkEQHTw4GZNVKXkYDsMo0OInbSUh0ztUyTSJlESd51ejxAXGbrAaUXJ pNih/voIMPMW+ihaliEeiyrK078aF9gzRPoPR7pFMvwJufWOfZ11ju7wRpfmYmwI/OMy hQ9gEcigcuiXe2fndqzpfc7uJ/Amkx/Ojg4RPlIf1Cn8eol6CaxfKTznUnc8KP7fr8Wz iDvzG+RsI/H7uhCiIPO/CfpabJ4+n7Qxtsc8XaUcQVlxFtg4Q1IVKpx8RdNdQQk9b40F KLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=THkKxvvo; dkim=neutral (no key) header.i=@suse.cz header.b=wavFwp2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m35-20020a635823000000b0055b001d96dcsi3915556pgb.178.2023.07.07.06.17.19; Fri, 07 Jul 2023 06:17:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=THkKxvvo; dkim=neutral (no key) header.i=@suse.cz header.b=wavFwp2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjGGNNN (ORCPT + 99 others); Fri, 7 Jul 2023 09:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbjGGNNL (ORCPT ); Fri, 7 Jul 2023 09:13:11 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5D4C1FF0; Fri, 7 Jul 2023 06:13:08 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 879C51FDB4; Fri, 7 Jul 2023 13:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688735587; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UobiIK3q2vMGQKwcTXx1XKYb4NcuR8QXMg/mvRkRX3c=; b=THkKxvvoPilHwhcm5SMUq87l4542ld7wHMlU0mmVX5ikmZf5AHOacfPNDCaO/UoxLmi41h cTGxaI1u/JUiOq58VWCP+EOFe5Qei2iRUX9LnwqMkosaZ8XS+oH5C/cZ7TB17aGfgdH+F4 3AlIohytQ6fBpZGTv1hCqVjmCyj5nRU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688735587; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UobiIK3q2vMGQKwcTXx1XKYb4NcuR8QXMg/mvRkRX3c=; b=wavFwp2g5JelLLtGhdgW6aKQtITsRQEvgYhJyoA9C+y8j8OrXpazqqPL0Jz+KJIXTuyNsN UFe00CisOpZr+zDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 681B41346D; Fri, 7 Jul 2023 13:13:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GNtfGWMPqGSfUAAAMHmgww (envelope-from ); Fri, 07 Jul 2023 13:13:07 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id E7F93A0717; Fri, 7 Jul 2023 15:13:06 +0200 (CEST) Date: Fri, 7 Jul 2023 15:13:06 +0200 From: Jan Kara To: Kent Overstreet Cc: "Darrick J. Wong" , Josef Bacik , torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, dchinner@redhat.com, sandeen@redhat.com, willy@infradead.org, tytso@mit.edu, bfoster@redhat.com, jack@suse.cz, andreas.gruenbacher@gmail.com, brauner@kernel.org, peterz@infradead.org, akpm@linux-foundation.org, dhowells@redhat.com Subject: Re: [GIT PULL] bcachefs Message-ID: <20230707131306.2wdgtuafc3unjetu@quack3> References: <20230626214656.hcp4puionmtoloat@moria.home.lan> <20230706155602.mnhsylo3pnief2of@moria.home.lan> <20230706164055.GA2306489@perftesting> <20230706173819.36c67pf42ba4gmv4@moria.home.lan> <20230706211914.GB11476@frogsfrogsfrogs> <20230706224314.u5zbeld23uqur2ct@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230706224314.u5zbeld23uqur2ct@moria.home.lan> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 06-07-23 18:43:14, Kent Overstreet wrote: > On Thu, Jul 06, 2023 at 02:19:14PM -0700, Darrick J. Wong wrote: > > /me shrugs, been on vacation and in hospitals for the last month or so. > > > > > bcachefs doesn't use sget() for mutual exclusion because a) sget() > > > is insane, what we really want is the _block device_ to be opened > > > exclusively (which we do), and we have our own block device opening > > > path - which we need to, as we're a multi device filesystem. > > > > ...and isn't jan kara already messing with this anyway? > > The blkdev_get_handle() patchset? I like that, but I don't think that's > related - if there's something more related to sget() I haven't seen it > yet There's a series on top of that that also modifies how sget() works [1]. Christian wants that bit to be merged separately from the bdev handle stuff and Christoph chimed in with some other related cleanups so he'll now take care of that change. Anyhow we should have sget() that does not exclusively claim the bdev unless it needs to create a new superblock soon. Honza [1] https://lore.kernel.org/all/20230704125702.23180-6-jack@suse.cz -- Jan Kara SUSE Labs, CR