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=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 E476EC2D0E4 for ; Tue, 24 Nov 2020 18:04:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78542206D5 for ; Tue, 24 Nov 2020 18:04:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WAqzL5UI"; 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 78542206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=McIycCGxfebOXZR/znAHfC2Z+W80ynTw6Yeh5lAVeBk=; b=WAqzL5UIfe/FOLTJzRYMV+lln yyrtuPmql4hn+VtkB6MNui2O0MMK+/bBPAR8kRSz5q/wZZZ7WecNsQfGTW/oZnia9RoNmuZrx6wUR gc69BGWvt6xAGaFPDtFp0blUxpgGIDnA6KIB3+mEjTpCNsTq38AC2mmSHPqtMTjo5mUbRtmY1P3HH t+rtP0nc3gn90sGBFwI6S1Ql8UJaaVmM5qCV/ve1sLbHYdmJhCJHrwqoCTCU2ZGEGmX5ELXnO3D+O zkdlWk4KPXUr9aoRIFpLoz3phrJFjBdKgUXU72Q7LnemFZ5MzURyHCut64CtEW1BVW9Rw1YwUEYzH zC9+9EhBg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khcfd-0007hL-QT; Tue, 24 Nov 2020 18:04:05 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khcfa-0007gw-6s for linux-mtd@lists.infradead.org; Tue, 24 Nov 2020 18:04:02 +0000 Received: by mail-qk1-x744.google.com with SMTP id y197so21647124qkb.7 for ; Tue, 24 Nov 2020 10:04:01 -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=gzA7Ti9iQCni/QSP8sz/L8qoGf5KE0De5mt9/ylw0kFsjOse5+Wh/T8fb1T2vx9Pbb LVRupBcIyXyZvnbyrX/AjORsX6g5g+0uS3i4Zm2zfQTqkwjItOyTOHsad4gC/zQRrr9W 4Xc8NlUIV4Cd0iLz12xmNCf0mcz60H5VL4Eo55AJh5Fx2+ClaR/i2XzClQgwEK7WiilG en7p1tYMMuDwxPdw6G6ljVO0H4Mv4Hp4+NVC0zJEkWpV4x0mDX+FNoQ22T27Uw4q1rgP uCMTH2qUzKtSIALSQv7Q9gpqUH47jpyH6kzalFXGRWsUoK2NJTPwfViXSmlst3aqixyH uXag== X-Gm-Message-State: AOAM533/vhd+u/9sFKTCnv9q4dvH+gmEUgU/5VWWqbAyoEbfK4zKNio4 8jKKIB5U7cLcadmm4oDGOZ0= 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 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-Disposition: inline In-Reply-To: <20201124132751.3747337-22-hch@lst.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201124_130402_270917_E8D1850B X-CRM114-Status: GOOD ( 15.48 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jens Axboe , Jan Kara , Mike Snitzer , Konrad Rzeszutek Wilk , Greg Kroah-Hartman , Jan Kara , Josef Bacik , Coly Li , linux-block@vger.kernel.org, Richard Weinberger , dm-devel@redhat.com, linux-mtd@lists.infradead.org, Johannes Thumshirn , linux-fsdevel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org 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 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/