Allow disabling of unmapped I/O on FreeBSD
commit46b2623586df3de6a350a2a95a97312628ad89e9
authorMark Johnston <markjdb@gmail.com>
Mon, 2 Aug 2021 19:18:24 +0000 (2 15:18 -0400)
committerGitHub <noreply@github.com>
Mon, 2 Aug 2021 19:18:24 +0000 (2 13:18 -0600)
treea3ca158853d3be3dac1703a9c0de7681ad4c8037
parent7eebcd2be6ac91a1c28ed6a2184efb81aa9aa2a4
Allow disabling of unmapped I/O on FreeBSD

We have a tunable which permits one to disable the use of unmapped I/O
for the buffer cache.  Respect it in ZFS as well.  This is useful for
KMSAN, which cannot easily maintain shadow state for unmapped pages.

No functional change intended, as unmapped I/O is permitted by default
and there's no real reason to disable it in practice except for
debugging.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #12446
module/os/freebsd/zfs/vdev_geom.c