Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30582184rwd; Thu, 6 Jul 2023 07:56:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJIvDKhmPtSAOV5aJCvPuLYOC/LK8G3IxflhnBoWh/0gKFDlBKnxPJRVbLnMLgHLdJ3IuG X-Received: by 2002:a17:90a:5a47:b0:263:c0f9:451c with SMTP id m7-20020a17090a5a4700b00263c0f9451cmr1530831pji.3.1688655393735; Thu, 06 Jul 2023 07:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688655393; cv=none; d=google.com; s=arc-20160816; b=OB3CLM/MaTCX9UBJ/EMjgFilLV8UDTTTx3ixheVXnYVlmJf3HZ/mdA9UM9QsfEF2pR 01tH+5uxBygeLGgu2+znICum4njXzGRzXmY2BGIXb7hYjIxMT1XM3xxo+GLVDh0Cksuf vncA6bpMMr1Hnn1ZsKlGugfoH9ilW9EiROK2DMtQPM9BJC7DXSXsWuVfqK4oj+nuwnpR vt7bz4ju5QiEDS3/e2p+Wq2x/XCgcDKFUT2GcMKKX6xU0VqGqqda9xnlRJ0MY4BSrvnJ zxegRAHGEsS86liTs0m0fQEHqVbYKvum3SvaqIOZLH2SHmvLhdmZ6F+m0fUOAvC+6q9s vlRw== 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; bh=fhykVYOZkzlXT4yh75rGeCVJ3cPkDr5sjhaxZXHjD+c=; fh=59T+jdfU8nEXEZGL5okA0pJR2/fb+G4dXhrbQLQ3nIg=; b=TJwScdyO+i08vNeS0+d/k1DbvfAr2A/mITziOu8o9aJ68Yn5kvI4vC1v6tsuAASupk IotYgdTdE8PefK/YAOmU1X3+hyQCEnE8itP2z6SaHHSGIkVdNVWeAbkC1YHZ7rugabsy qQJAlvQ+eca99qNhcLHn175xuKtZTRSoU4lVPxIslaEx4OaClOeIyhugx46ILmNrN5H/ 5MmSaISO1j/e6fgELIoUw42HHZIKK8uRO9sQ76DcZU+MzzutNvVfw7Y9YTLVkGtZ3hLQ rT4fQHBseJhvncHEdIYZ8T88xEdkqDx0I7KLmoGGZxxMOMPPh79iTf2llmMWd2dwtKYR rnxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zbagyQCh; 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 i16-20020a17090a7e1000b0025ee198e6f7si3896374pjl.168.2023.07.06.07.56.14; Thu, 06 Jul 2023 07:56:33 -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=@infradead.org header.s=bombadil.20210309 header.b=zbagyQCh; 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 S233630AbjGFOzR (ORCPT + 99 others); Thu, 6 Jul 2023 10:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233622AbjGFOzO (ORCPT ); Thu, 6 Jul 2023 10:55:14 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88DBCB9; Thu, 6 Jul 2023 07:54:56 -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=fhykVYOZkzlXT4yh75rGeCVJ3cPkDr5sjhaxZXHjD+c=; b=zbagyQChudyQPE2bMPZfTnWPir xEx+mIn+jmhXiSkClrK6vyYVxVucLdM5bush+XAhi1L8+RYYMWbrfI/PXNLKjNrWkvX1JuFMBGnvz hobfOtgzfc30tNgXDTW5f735BiGierSS2sw4A5BsLsjO+NIDmCJaoqnJvjB6GpO63lTBhPw1Ktdzv 09/JTSE1nHQ4VXLt2IEwE6yDDWWPLCfOggEtJrOTiDfYzQXVq9m9NhYrAKw8aQvc7GPBw2+8hQS8A 80c0RawRFeosEEQrvmZs9gRIzWZlEHNQkGLdtR04aftBqsNeChaMLjpw0CwixmzDs5mdRTNLsZohR 2STEGtcw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qHQNf-001vuf-2T; Thu, 06 Jul 2023 14:54:51 +0000 Date: Thu, 6 Jul 2023 07:54:51 -0700 From: Christoph Hellwig To: Jan Kara Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , 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 RFC 0/32] block: Make blkdev_get_by_*() return handle Message-ID: References: <20230629165206.383-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230629165206.383-1-jack@suse.cz> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Jul 04, 2023 at 02:21:27PM +0200, Jan Kara wrote: > Hello, > > this patch series implements the idea of blkdev_get_by_*() calls returning > bdev_handle which is then passed to blkdev_put() [1]. This makes the get > and put calls for bdevs more obviously matching and allows us to propagate > context from get to put without having to modify all the users (again!). > In particular I need to propagate used open flags to blkdev_put() to be able > count writeable opens and add support for blocking writes to mounted block > devices. I'll send that series separately. > > The series is based on Linus' tree as of yesterday + two bcache fixes which are > in the block tree. Patches have passed some basic testing, I plan to test more > users once we agree this is the right way to go. Can you post a link to a git branch for this and the follow up series? Especially with a fairly unstable base it's kinda hard to look at the result otherwise.