]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfsd: Use vdev prop values for fault/degrade thresholds
authorAlan Somers <asomers@FreeBSD.org>
Tue, 5 Mar 2024 17:55:55 +0000 (10:55 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Tue, 5 Mar 2024 19:11:53 +0000 (12:11 -0700)
commit89f4f91dbfdcabe65bc7476bc5f13dfb837870fe
tree56bed9df4f4b02b659125b4a5eb7501bafa5ed40
parente333110d1de748e50051d1305b5438d1bc54eeb4
zfsd: Use vdev prop values for fault/degrade thresholds

ZED uses vdev props for setting disk fault/degrade thresholds, this
patch enables zfsd to use the same vdev props for these same tasks.

OpenZFS on Linux is using vdev props for ZED disk fault/degrade
thresholds. Originally the thresholds supported were for io and checksum
events and recently this was updated to process slow io events as
well, see
https://github.com/openzfs/zfs/commit/cbe882298e4ddc3917dfaf239eca475fe06d62d4

This patch enables us to use the same vdev props in zfsd as ZED uses.
After this patch is merged both OSs will use the same vdev props to set
retirement thresholds.

It's probably important to note that the threshold defaults are
different between OS. I've kept the existing defaults inside zfsd and
DID NOT match them to what ZED does.

Differential Revision: https://reviews.freebsd.org/D44043
MFC after: 2 weeks
Relnotes: yes
Reviewed by: asomers, allanjude
Sponsored by: Axcient
Submitted by: Alek Pinchuk <apinchuk@axcient.com>
cddl/usr.sbin/zfsd/case_file.cc
cddl/usr.sbin/zfsd/case_file.h
cddl/usr.sbin/zfsd/zfsd.8