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=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 684ABC56202 for ; Tue, 24 Nov 2020 18:04:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D32B1206D5 for ; Tue, 24 Nov 2020 18:04:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="is4ScJMt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D32B1206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E8DF36B006E; Tue, 24 Nov 2020 13:04:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E16396B0070; Tue, 24 Nov 2020 13:04:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C906C6B0071; Tue, 24 Nov 2020 13:04:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0096.hostedemail.com [216.40.44.96]) by kanga.kvack.org (Postfix) with ESMTP id A8DE16B006E for ; Tue, 24 Nov 2020 13:04:06 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 1373D3623 for ; Tue, 24 Nov 2020 18:04:06 +0000 (UTC) X-FDA: 77520085692.09.blade49_370bffe27370 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin09.hostedemail.com (Postfix) with ESMTP id 70609180AC173 for ; Tue, 24 Nov 2020 18:04:01 +0000 (UTC) X-HE-Tag: blade49_370bffe27370 X-Filterd-Recvd-Size: 3995 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 18:04:00 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id n132so21699213qke.1 for ; Tue, 24 Nov 2020 10:04:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8qZ2mbF42a4EoCPjpueBEzfe9XOwF2IptTReGgUwObs=; b=is4ScJMtRgB8A67gco8/ShkniDzY10n7rMewX714/9E8uwhLChpIiLuhS9NYdAwKZO wwPFFE1umeJEQtu7KDxbrmdClPTpQcYjr1RpDpjnuZBK1iq0PQfGRfm19X+XI49NQayK 8lAFgH0g1BclA/vf2p2mEb1VckBHMRHQuZY2MAZGNuGYbRuKC1k7RL8V45KondL8dAgu pkggwpY/K/3AGEFSp3YuAHk/ID2wYfhEWzIb5TQJq39NiNddKNAmZTO9FhKaayKgBddH Z4wiCaTnVN8dlV2LZgcg+T7QWmffCA0edb1cuImXXMdzH67nJfiqgEY4ncID7PjQAYKh /ZGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=8qZ2mbF42a4EoCPjpueBEzfe9XOwF2IptTReGgUwObs=; b=ZtYNi1G0/uTVhagP/3r3Atuw+BlZP1zutPO0j2BWIN9oXQdm/3Of4H7AzzSLfcsX/0 pconEkKrqMyA2+Fqn93WOrYeaalfpQ9bHj78e4qHUJgW6LIcYBtRRu1r0VAxn3BeSUrv 7kCtdSwuBC8rj2LI8yTP0RWnUbWGBK9iN0it9o7D6rutCAXGxmbKHEZQtTo5ZIuZa1KM 8nSzJPJwQ56TyTHV1qlrH1P6UFdoetBhdAERRrFOUS8j28NYg7WiwnQwkXdXVgvXwMNW 0p2EP6/KQyenMzeJqRUXTEQHRfuwo3wfy2ju0USwPAfiGwVVdvid76yUpg8VpxXXNGTC 9aSg== X-Gm-Message-State: AOAM531s+dygf8r1oY3MTzrbSOM1jCxmn9CcAMeH8F7viCXz3eHcTHgr g8gW/wEoSN3QxUU+UJRqt+M= X-Google-Smtp-Source: ABdhPJypHMVf10j8dqLbG3/kMc2wzxScN+9Rw3Fm44OZCed30V+ovAuzBFJQGc76NiRl6CUPNsyaww== X-Received: by 2002:ae9:e007:: with SMTP id m7mr5836885qkk.416.1606241040110; Tue, 24 Nov 2020 10:04:00 -0800 (PST) Received: from localhost (dhcp-6c-ae-f6-dc-d8-61.cpe.echoes.net. [72.28.8.195]) by smtp.gmail.com with ESMTPSA id c14sm13621716qko.29.2020.11.24.10.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 10:03:59 -0800 (PST) Date: Tue, 24 Nov 2020 13:03:36 -0500 From: Tejun Heo To: Christoph Hellwig Cc: Jens Axboe , Josef Bacik , Konrad Rzeszutek Wilk , Coly Li , Mike Snitzer , Greg Kroah-Hartman , Jan Kara , Johannes Thumshirn , dm-devel@redhat.com, Richard Weinberger , Jan Kara , linux-block@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 21/45] block: refactor blkdev_get Message-ID: References: <20201124132751.3747337-1-hch@lst.de> <20201124132751.3747337-22-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201124132751.3747337-22-hch@lst.de> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 24, 2020 at 02:27:27PM +0100, Christoph Hellwig wrote: > Move more code that is only run on the outer open but not the open of > the underlying whole device when opening a partition into blkdev_get, > which leads to a much easier to follow structure. > > This allows to simplify the disk and module refcounting so that one > reference is held for each open, similar to what we do with normal > file operations. > > Signed-off-by: Christoph Hellwig Acked-by: Tejun Heo Thanks. -- tejun