Skip to content

Commit bc06d81

Browse files
committed
Linux: Enable Direct IO by default
Aligns the 2.3 release branch with the well tested default behavior in the master branch. Signed-off-by: Brian Behlendorf <[email protected]>
1 parent 76745cf commit bc06d81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

module/zfs/zfs_vnops.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,15 @@ int zfs_bclone_wait_dirty = 0;
7777
* Enable Direct I/O. If this setting is 0, then all I/O requests will be
7878
* directed through the ARC acting as though the dataset property direct was
7979
* set to disabled.
80+
*
81+
* Disabled by default on FreeBSD until a potential range locking issue in
82+
* zfs_getpages() can be resolved.
8083
*/
84+
#ifdef __FreeBSD__
8185
static int zfs_dio_enabled = 0;
86+
#else
87+
static int zfs_dio_enabled = 1;
88+
#endif
8289

8390

8491
/*

0 commit comments

Comments
 (0)