mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 11:40:17 +00:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
parent
76745cf5b8
commit
bc06d8164b
@ -77,8 +77,15 @@ int zfs_bclone_wait_dirty = 0;
|
|||||||
* Enable Direct I/O. If this setting is 0, then all I/O requests will be
|
* 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
|
* directed through the ARC acting as though the dataset property direct was
|
||||||
* set to disabled.
|
* 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;
|
static int zfs_dio_enabled = 0;
|
||||||
|
#else
|
||||||
|
static int zfs_dio_enabled = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user