mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
ZFS: Make deadman tunables no longer read-only
This allows the user to enable, disable, and adjust the I/O deadman at runtime. This can be especially useful when a pool is backed by remote storage (such as iscsi, ggated, etc). PR: 221906 Submitted by: Fabian Keil <fk@fabiankeil.de> Obtained from: ElectroBSD MFC after: 1 week Sponsored by: Klara Systems Event: Waterloo Hackathon 2019
This commit is contained in:
parent
45d314c556
commit
4e7d8292ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348068
@ -363,13 +363,13 @@ SYSCTL_PROC(_vfs_zfs, OID_AUTO, debugflags,
|
||||
CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, 0, sizeof(int),
|
||||
sysctl_vfs_zfs_debug_flags, "IU", "Debug flags for ZFS testing.");
|
||||
|
||||
SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, deadman_synctime_ms, CTLFLAG_RDTUN,
|
||||
SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, deadman_synctime_ms, CTLFLAG_RWTUN,
|
||||
&zfs_deadman_synctime_ms, 0,
|
||||
"Stalled ZFS I/O expiration time in milliseconds");
|
||||
SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, deadman_checktime_ms, CTLFLAG_RDTUN,
|
||||
SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, deadman_checktime_ms, CTLFLAG_RwTUN,
|
||||
&zfs_deadman_checktime_ms, 0,
|
||||
"Period of checks for stalled ZFS I/O in milliseconds");
|
||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, deadman_enabled, CTLFLAG_RDTUN,
|
||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, deadman_enabled, CTLFLAG_RWTUN,
|
||||
&zfs_deadman_enabled, 0, "Kernel panic on stalled ZFS I/O");
|
||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, spa_asize_inflation, CTLFLAG_RWTUN,
|
||||
&spa_asize_inflation, 0, "Worst case inflation factor for single sector writes");
|
||||
|
Loading…
Reference in New Issue
Block a user