Workaround issue of Linux vdev_disk.c, (#16678)
commitaefc2da8a594d7a8059c862eab464d5f798393b3
authorAlexander Motin <mav@FreeBSD.org>
Wed, 23 Oct 2024 17:19:46 +0000 (23 13:19 -0400)
committerGitHub <noreply@github.com>
Wed, 23 Oct 2024 17:19:46 +0000 (23 10:19 -0700)
tree06470c0d8e8a664db7e0fed5dc08e1c54e961f2b
parent152ae5c9bc2beb69f1b55481f7b3940aeb266c55
Workaround issue of Linux vdev_disk.c, (#16678)

in some cases not linearizing buffers with disk sector crossing a
page boundary. It is fine for hardware, but somehow required by LUKS.
It is not typical for ZFS to produce such buffers, but it may happen
if 6KB block is compressed to 4KB, while still having 2KB alignment.
Banning the 6KB buffers helps vdevs with ashifh=12.

Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
module/zfs/zio.c