mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-29 20:04:57 +01:00
FreeBSD: Enable Direct IO by default
Commits25eb538778,178682506f, and8dc452d907resolve the remaining known issues with Direct IO on FreeBSD. Enable it by default on all platforms. Signed-off-by: Brian Behlendorf <[email protected]> Closes #16761
This commit is contained in:
1 parent
b6b0d76cca
commit
eb1738bcb3
1 file changed
-7
@@ -89,15 +89,8 @@ int zfs_bclone_wait_dirty = 1;
|
||||
* Enable Direct I/O. If this setting is 0, then all I/O requests will be
|
||||
* directed through the ARC acting as though the dataset property direct was
|
||||
* set to disabled.
|
||||
*
|
||||
* Disabled by default on FreeBSD until a potential range locking issue in
|
||||
* zfs_getpages() can be resolved.
|
||||
*/
|
||||
#ifdef __FreeBSD__
|
||||
static int zfs_dio_enabled = 0;
|
||||
#else
|
||||
static int zfs_dio_enabled = 1;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Strictly enforce alignment for Direct I/O requests, returning EINVAL
|
||||
|
||||
Reference in new issue
Block a user