Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZFS prefetch is currently governed by the zfs_prefetch_disable tunable. However, this is a module-wide settings - if a specific dataset benefits from prefetch, while others have issue with it, an optimal solution does not exists. This commit introduce the "prefetch" tri-state property, which enable granular control (at dataset/volume level) for prefetching. This patch does not remove the zfs_prefetch_disable, which reimains a system-wide switch for enable/disable prefetch. However, to avoid duplication, it would be preferable to deprecate and then remove the module tunable. Please note that during pool import, os_prefetch defaults to 0. For this reason ZFS_PREFETCH_ALL was enumerated as 0, otherwise prefetch would be disabled for pool import (causing slower import). Signed-off-by: Gionatan Danti <[email protected]>
- Loading branch information