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,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 5D022C2D0E4 for ; Tue, 24 Nov 2020 18:04:24 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A19CF208FE for ; Tue, 24 Nov 2020 18:04:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A19CF208FE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=dm-devel-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-491-ZOxdMCLoPHKONyZx9xrLLQ-1; Tue, 24 Nov 2020 13:04:19 -0500 X-MC-Unique: ZOxdMCLoPHKONyZx9xrLLQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3DF02107ACE8; Tue, 24 Nov 2020 18:04:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8B51C1001B2C; Tue, 24 Nov 2020 18:04:12 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 54CD7180954D; Tue, 24 Nov 2020 18:04:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AOI48WI025363 for ; Tue, 24 Nov 2020 13:04:08 -0500 Received: by smtp.corp.redhat.com (Postfix) id 78E582166B27; Tue, 24 Nov 2020 18:04:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 707A32166B2B for ; Tue, 24 Nov 2020 18:04:06 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E2B0103B80C for ; Tue, 24 Nov 2020 18:04:06 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-545-UbqEaHzZNKaKdpBpx0S_gA-1; Tue, 24 Nov 2020 13:04:00 -0500 X-MC-Unique: UbqEaHzZNKaKdpBpx0S_gA-1 Received: by mail-qk1-f196.google.com with SMTP id b144so7144161qkc.13; Tue, 24 Nov 2020 10:04:00 -0800 (PST) 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=t3qe2nsUCVuTgFYWUsd31lE7i9wdxVmirDc0jAmcJqpIbE6yKfufL4+hyvdpZrhnhS FpKEyBEQ1NKUDAi5OE+Ktuiei4dj++UAq2Iwa03k78hE+koWl/nLIsApoeq5eBXS1ZGy OQYLWH6Ekq1svGkEGSwg3u+Rowsrzxwcjmqr8XXUJYkmTLmDksL2ekIHsF3qpAnjv0mw pxBn2P+YBdDGIStFzwi+4wCFSvYvKFhzgTfjh6SlUJM+f3uMMcTctgubhliIq/u4Y7uC EvkD8eeLd83CZF/Y3zVs3g98iQ5q2nu1eyYKagtADi3+TM84rMdXSNQ3j6/tec57FEZL ELUw== X-Gm-Message-State: AOAM533IJbaYQPNufLZUsxGp7y3pYUG75xAZOIidg9+W4trJT1WVSk4W /+Keg5Blg+G/H8mZ8aartRA= 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 Message-ID: References: <20201124132751.3747337-1-hch@lst.de> <20201124132751.3747337-22-hch@lst.de> MIME-Version: 1.0 In-Reply-To: <20201124132751.3747337-22-hch@lst.de> X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: dm-devel@redhat.com 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 Subject: Re: [dm-devel] [PATCH 21/45] block: refactor blkdev_get X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dm-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel 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,DKIM_SIGNED, DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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 D3CD9C63777 for ; Tue, 24 Nov 2020 18:04:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 743922087C for ; Tue, 24 Nov 2020 18:04:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="is4ScJMt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732036AbgKXSEB (ORCPT ); Tue, 24 Nov 2020 13:04:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728945AbgKXSEB (ORCPT ); Tue, 24 Nov 2020 13:04:01 -0500 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFB08C0613D6; Tue, 24 Nov 2020 10:04:00 -0800 (PST) Received: by mail-qk1-x741.google.com with SMTP id l2so21723413qkf.0; 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=d6DHjdJRsXIAyhuzzQGB2cDDK00FvW9xeTKRd83jonBdF9eoKqZzxhmT6x4wf6CiKR KtCvmbkH+opxH/7hGXHcbsdeYeg2DiPDrxK/mJ2/ELOOtwR78z7fsy1O6Sy3xsBm4f19 gxwjskdO8UBHzQbS6A/i7pqX3LB+yljDKK+qEarY4BbWZbH7Ru4SJSbm+L/hNMyQqd7j QM6tdjqb+7UHqm245XR616UxE11dC3z66CwtT7h78BqmTk8M+03AzVIwY1VUH+JuP0AG akNV6Kfl/lvo5ufsnRdb8H4BpScyAv6wucPcf8Ae2J9Lz0w4dQSZfxgyR7UwpK/eX/Zt mxfA== X-Gm-Message-State: AOAM530RuBpKSjUPia7QYvlM6BfxKqblNzYmsMwxaag/tzut7mZRGcOx QcREZjSMyfF4lB3ZAzzYrlw= 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) Sender: Tejun Heo 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> Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.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 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/