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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 BCAC4C4338F for ; Mon, 23 Aug 2021 08:34:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 892B061248 for ; Mon, 23 Aug 2021 08:34:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 892B061248 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uXtbmAPq28t3qHJXTSxCykADYtnEx2zPJSSDajJl2wo=; b=C1YJ30PxQNMidg +XCubXZOBkdEQQUKNA+ZzouncCTcEBnmYhRlEx2s8h9imqhidF4unGsNK5z+9b3iMoPL4oIYAtzYb uddUZoEjnzEcKdWymlGqxLZdJmdMYUEZtB+01/x9qLzFr764er5OB76UrWyuyGh5fJCN0XYWS2IsN 629rYBa8ItKxAD0cmwb0XdN07CSJXd104orgihTW03psI/r+qbiIAtJa69S3gtWCKA3TWf+bS0n1O mkSxPQKW6Og3GH1fYf5g9KrS+rBDsWsccyn6gGnW7FH/0rGk0gwH2RGSZIV0yRUDKDqGcB4jH8FIe bjSu1tTb0GAaQ2YhFtPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mI5OU-00Fvxb-6y; Mon, 23 Aug 2021 08:33:22 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mI5OQ-00FvwR-J3 for linux-mtd@lists.infradead.org; Mon, 23 Aug 2021 08:33:20 +0000 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id D89B94000D; Mon, 23 Aug 2021 08:33:14 +0000 (UTC) From: Miquel Raynal To: Christoph Hellwig , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Guenter Roeck , linux-mtd@lists.infradead.org Subject: Re: [PATCH 8/8] mtd_blkdevs: simplify the refcounting in blktrans_{open, release} Date: Mon, 23 Aug 2021 10:33:14 +0200 Message-Id: <20210823083314.9063-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210823073359.705281-9-hch@lst.de> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'ee28b42006c37aaeb68c83300fe5608db662082f' X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210823_013318_799798_586F0116 X-CRM114-Status: UNSURE ( 7.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Mon, 2021-08-23 at 07:33:59 UTC, Christoph Hellwig wrote: > Always grab a reference to the mtd_blktrans_dev in ->open instead of > just on the first open, and do away with the additional temporary > references in ->open and ->release. > > Signed-off-by: Christoph Hellwig Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/