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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11C72C433F5 for ; Wed, 15 Dec 2021 15:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243657AbhLOPId (ORCPT ); Wed, 15 Dec 2021 10:08:33 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:50272 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243550AbhLOPIc (ORCPT ); Wed, 15 Dec 2021 10:08:32 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 733B5210ED; Wed, 15 Dec 2021 15:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1639580911; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VkgvDlJFmNpu5YKvLBG8E1lrbGnCHTfUZcpHBWDm+SA=; b=VLpmqy5PyRhDJPERHj+SNTApgdbuQt6uYMJJRpoz0yL4brcFtatYlWQ70zh5OCMmI6PwdK zHMQv7cbdsMp/cCJGFbo/m1ya8yiB7uf6NeUuzq43Hc49eHKh1zzB0tZ8lPE4HcxAacjrR xMR0iNgXO5PAGjDLP891Ql92LIAFr9s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1639580911; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VkgvDlJFmNpu5YKvLBG8E1lrbGnCHTfUZcpHBWDm+SA=; b=tkCh70v0x27sXzVh49/urM4mJzdu+uKr43gZ6KhmMUa+ZiyKQOqlVx+ICWvcVzz2Rs7e0z jrTlWnf6b0eX2DAg== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id 3B8D4A3B85; Wed, 15 Dec 2021 15:08:31 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 50D67DA781; Wed, 15 Dec 2021 16:08:12 +0100 (CET) Date: Wed, 15 Dec 2021 16:08:12 +0100 From: David Sterba To: Shin'ichiro Kawasaki Cc: linux-btrfs@vger.kernel.org, David Sterba , Naohiro Aota , Johannes Thumshirn , Damien Le Moal Subject: Re: [PATCH] btrfs: Fix missing blkdev_put() call in btrfs_scan_one_device() Message-ID: <20211215150812.GY28560@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Shin'ichiro Kawasaki , linux-btrfs@vger.kernel.org, David Sterba , Naohiro Aota , Johannes Thumshirn , Damien Le Moal References: <20211215103843.331630-1-shinichiro.kawasaki@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211215103843.331630-1-shinichiro.kawasaki@wdc.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, Dec 15, 2021 at 07:38:43PM +0900, Shin'ichiro Kawasaki wrote: > The function btrfs_scan_one_device() calls blkdev_get_by_path() and > blkdev_put() to get and release its target block device. However, when > btrfs_sb_log_location_bdev() fails, blkdev_put() is not called and the > block device is left without clean up. This triggered failure of fstests > generic/085. Fix the failure path of btrfs_sb_log_location_bdev() to > call blkdev_put(). > > Fixes: 12659251ca5df ("btrfs: implement log-structured superblock for ZONED mode") > Signed-off-by: Shin'ichiro Kawasaki > Cc: stable@vger.kernel.org # 5.15+ Added to misc-next, thanks.