]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: split bios to the fs sector size boundary
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Nov 2024 06:26:33 +0000 (07:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:14 +0000 (14:02 +0100)
commit39f1ef13d8daf85ef0337fd49759d9f4baef91a0
tree1cee067e105941364947285aa5973775b37e79dd
parent9667c9146418aa8ad9c255680c26a5adba4db424
btrfs: split bios to the fs sector size boundary

commit be691b5e593f2cc8cef67bbc59c1fb91b74a86a9 upstream.

Btrfs like other file systems can't really deal with I/O not aligned to
it's internal block size (which strangely is called sector size in
btrfs, for historical reasons), but the block layer split helper doesn't
even know about that.

Round down the split boundary so that all I/Os are aligned.

Fixes: d5e4377d5051 ("btrfs: split zone append bios in btrfs_submit_bio")
CC: stable@vger.kernel.org # 6.12
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/bio.c