Thread (3 messages) 3 messages, 3 authors, 2021-12-15

Re: [PATCH] btrfs: Fix missing blkdev_put() call in btrfs_scan_one_device()

From: Nikolay Borisov <hidden>
Date: 2021-12-15 13:20:30


On 15.12.21 г. 12:38, 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 <redacted>
Cc: stable@vger.kernel.org # 5.15+
---
Reviewed-by: Nikolay Borisov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help