Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31847013rwd; Fri, 7 Jul 2023 05:25:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJuO2edjfE9fXzaoDlZNnWgQQaut+as1FslxT2IiaMuaErKfEmyUxq5VFrJx/E0+HwcFTK X-Received: by 2002:a17:902:ce8b:b0:1af:b957:718b with SMTP id f11-20020a170902ce8b00b001afb957718bmr4258010plg.39.1688732728414; Fri, 07 Jul 2023 05:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688732728; cv=none; d=google.com; s=arc-20160816; b=rn+jSpVN24XlVP/WIy8T9K7oYXUkQCMcE8k0l9e1p9uLkup/H7WewJEUTJrW2L8Nob B7XOpAgi+xxPZZ+VcUlLygs2tx228lzEgSzMAOZfDP4XfHpMRtq1qHQCHBR/gGvxFM1s XUbbB6her1DKxmkokZ9X11JqWoBH+nrF1LDgeScnv49UeSSJ75ur5nrB8TsO8hV3Sh80 jS1DnJrdFwkhIFmWy+cyxkCQ3diM65WDcgVAqDl/cMVr7zMEg9yGxbNogTDbi/fNNF1Q Q16ew8NqFmoA9Srz0ehnjXmbCk+mfm7iAk1E7DLieq+Efd275k8v5RJMZltFCYEut/py NvVg== 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=v97Z4h87RrabL7WLNBXHFysNCdL5KIt8mtxxyrwI0lE=; fh=jcmCbfbqbSKAjVQ8ZKe3RQciYcc3WZRwFBV8HFGdy2M=; b=mO/h3k27AwsHypdDhkIZsEpqpPV3Ddyw2qJlmukZnttRCk50/HWA2KybuKKYY3zDsn 5ksH8hgohlhyoH4VEGqS0NSazp0bo7qNkBjd7MsNQX+B726iLDtBFhcohG2wO9TFIs6L zZfX2mNFsGHWeuCBzuc+v4AMSATCYDEHZw2i+9xjbrgv+9h0LQpNtb1iFDxkfTVGE5IG hiS7HXmVwQQGXGaHjzQ3kcIgdH1zvTHPGGMAVGQAAlIMiq8mBvuxTzLraYTuySC8FYYW Gw05qnich63aVyto2dEw54qlsJvgWkdNFx/jZujFQo057KQnVLTei5s4eiOnu0QJRJlC 0lSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=LqFRs1c1; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=WsVzOxtN; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 k1-20020a170902694100b001b801bd7fbasi3377725plt.417.2023.07.07.05.25.08; Fri, 07 Jul 2023 05:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=LqFRs1c1; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=WsVzOxtN; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbjGGMYk (ORCPT + 99 others); Fri, 7 Jul 2023 08:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjGGMYj (ORCPT ); Fri, 7 Jul 2023 08:24:39 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53051FE6; Fri, 7 Jul 2023 05:24:36 -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 F0C8D1FDB5; Fri, 7 Jul 2023 12:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688732675; 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=v97Z4h87RrabL7WLNBXHFysNCdL5KIt8mtxxyrwI0lE=; b=LqFRs1c1G67BsNNDLuNq3gTOMo8UAqFT+ZgX0/ce2GYyjoNTkNY3JvymPyQUIIgvdCfdfA wvYabjfbqON86k1PsUxAyhGKf+BANbZ0orxg0fUOS7bjyZ5ddpTiVyICESJEtA4U8iKIIb 0Zu9Qq9rWpT0jHo3EjIE5diazY1476M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688732675; 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=v97Z4h87RrabL7WLNBXHFysNCdL5KIt8mtxxyrwI0lE=; b=WsVzOxtNAjI8cmGR5IMHwFDPJM5ZBawTTSTtFHjjnpb4nomNuwaP8lcoennzww9M9DfIc5 k35MoJGFDmLh3vBw== 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 D97F7139E0; Fri, 7 Jul 2023 12:24:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rMQMNQIEqGT9NgAAMHmgww (envelope-from ); Fri, 07 Jul 2023 12:24:34 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 6AC15A0717; Fri, 7 Jul 2023 14:24:34 +0200 (CEST) Date: Fri, 7 Jul 2023 14:24:34 +0200 From: Jan Kara To: Christoph Hellwig Cc: Jan Kara , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Alasdair Kergon , Andrew Morton , Anna Schumaker , Chao Yu , Christian Borntraeger , "Darrick J. Wong" , Dave Kleikamp , David Sterba , dm-devel@redhat.com, drbd-dev@lists.linbit.com, Gao Xiang , Jack Wang , Jaegeuk Kim , jfs-discussion@lists.sourceforge.net, Joern Engel , Joseph Qi , Kent Overstreet , linux-bcache@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pm@vger.kernel.org, linux-raid@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, "Md. Haris Iqbal" , Mike Snitzer , Minchan Kim , ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org, Sergey Senozhatsky , Song Liu , Sven Schnelle , target-devel@vger.kernel.org, Ted Tso , Trond Myklebust , xen-devel@lists.xenproject.org Subject: Re: [PATCH 01/32] block: Provide blkdev_get_handle_* functions Message-ID: <20230707122434.s46ytxpne42hecni@quack3> References: <20230629165206.383-1-jack@suse.cz> <20230704122224.16257-1-jack@suse.cz> <20230706161433.lj4apushiwguzvdd@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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-ext4@vger.kernel.org On Fri 07-07-23 04:28:41, Christoph Hellwig wrote: > On Thu, Jul 06, 2023 at 06:14:33PM +0200, Jan Kara wrote: > > > struct bdev_handle *bdev_open_by_path(dev_t dev, blk_mode_t mode, > > > void *holder, const struct blk_holder_ops *hops); > > > void bdev_release(struct bdev_handle *handle); > > > > I'd maybe use bdev_close() instead of bdev_release() but otherwise I like > > the new naming. > > We're using release everywhese else, but if Jens is fine with that I > can live with close. Dunno, to me words pair like open-close, get-put, acquire-release. Furthermore e.g. ->release() (and thus blkdev_release()) is called only when the last file reference is dropped, not when each reference is dropped, so that's why bdev_release() seems a bit confusing to me. Honza -- Jan Kara SUSE Labs, CR