Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1021586rda; Sun, 22 Oct 2023 22:44:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBqQMX4l2PAVX5fVV088qnd57QRwWvdB271oHykCoUG+cgMUaKhNcjvHRX5ewl6hU0fTU0 X-Received: by 2002:a17:902:e5cf:b0:1c9:dff1:6de7 with SMTP id u15-20020a170902e5cf00b001c9dff16de7mr11988555plf.7.1698039870704; Sun, 22 Oct 2023 22:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698039870; cv=none; d=google.com; s=arc-20160816; b=Iqed1ds95ZmkC2aBgZEVg9t262r0LUWpDGnj4RL6e3Bdt/BgfXbZMxd13ZP4pBvvwn 0uDrGappDJmOaTELuTf4lccWaQxBnakaaNV2bi2IRtmkgf4EV4+uurelVHShW8DpzJbN XYASgyXW43voRH/+rV+1K5nppohWmZVQW4ZdMtRauPANY+/JktzplTd3ZwNZxD3f3ogg Ei+ZYeLSKLi7LQdpXBER6cyjXkz64CK8S/Zmyjhj3bL8J96JF7i9Ec/jM3ciYDZnbch8 U4rDmIMwzrAUfOar3kDNzT+h0oz8FexbzVcM3vmnlRUZHmByGsls+H0MTMmbd4g/rbXE PjJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GAvMOvokItGH8mQdCWdzdjSMfMcdpFIZ+TNc0GPLeXY=; fh=gpRxtcWoLHdKVDb3hZ1NrHSNu6pxYzAL0Vp34JzZgw4=; b=JPLV+sxVLBCWeI+Agrrx+cCY/UBwJmgicqvjJLelHlZfiw2RnJRNiqgDTq4e92iVza ignpiirgCrXsuonusIAkge/lSLhRODfKOhEnsa4Klm6VaE9fE1b5bGBYf8ethus7mD2z 7k8uBVNREe4E9srFvClYgv0yDNTsQGPWaOrnjWs1piWMOEaFarlg2hQo2C8QVNgJCAky tT46uduYfbRvLvf3+liy4DxaxBqKkHQFhHv5Ngv/5bvjOisI6ut+JKXT7fymyTrG2XuR qTF6ZAUeF8dSPCdVDuttWezyYdp1oIBejVVaFOL698XIInIw0dmgrPVAHWjmexozx3WD ptLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j16-20020a170902759000b001ca000e889bsi5854222pll.175.2023.10.22.22.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 22:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5B2638067B5C; Sun, 22 Oct 2023 22:44:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229556AbjJWFoV (ORCPT + 99 others); Mon, 23 Oct 2023 01:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjJWFoT (ORCPT ); Mon, 23 Oct 2023 01:44:19 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8702CB3; Sun, 22 Oct 2023 22:44:17 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id C562868AA6; Mon, 23 Oct 2023 07:44:13 +0200 (CEST) Date: Mon, 23 Oct 2023 07:44:13 +0200 From: Christoph Hellwig To: Richard Weinberger Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, vigneshr@ti.com, miquel.raynal@bootlin.com, joern@lazybastard.org, Christoph Hellwig , stable@vger.kernel.org Subject: Re: [PATCH] mtd: block2mtd: Add a valid holder to blkdev_put() Message-ID: <20231023054413.GA11272@lst.de> References: <20231021185832.25592-1-richard@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231021185832.25592-1-richard@nod.at> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 22:44:28 -0700 (PDT) On Sat, Oct 21, 2023 at 08:58:32PM +0200, Richard Weinberger wrote: > Since commit 2736e8eeb0ccd ("block: use the holder as indication for exclusive opens") Overly long line here. > blkdev_put() requires a valid holder argument. > So, do so also in block2mtd to unbreak bdev->bd_holder refcounting. Otherwise looks good: Reviewed-by: Christoph Hellwig