diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2023-10-09 10:30:21 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2023-10-12 04:08:11 +0000 |
commit | 4bf38105464ba4dde42a9d3cf223f152aa980a1b (patch) | |
tree | 1d0aceff68129f94fe1834858fc22560fa748599 | |
parent | 969dc06e919ca135fdbf5c9a760684c357ae9310 (diff) | |
download | src-4bf38105464ba4dde42a9d3cf223f152aa980a1b.tar.gz src-4bf38105464ba4dde42a9d3cf223f152aa980a1b.zip |
cam/scsi: Add sysctl flag CTLFLAG_TUN to loader tunable
The sysctl variable 'kern.cam.scsi_delay' is actually a loader tunable.
Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it
correctly.
No functional change intended.
Reviewed by: kib, imp (for #cam)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42113
(cherry picked from commit e2ad7ce37b1a354750d2dd3567e77f72edeb7e1d)
-rw-r--r-- | sys/cam/scsi/scsi_all.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 985547b7ce20..0e42403d74a6 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -9406,7 +9406,8 @@ sysctl_scsi_delay(SYSCTL_HANDLER_ARGS) return (set_scsi_delay(delay)); } SYSCTL_PROC(_kern_cam, OID_AUTO, scsi_delay, - CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 0, sysctl_scsi_delay, "I", + CTLTYPE_INT | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE, + 0, 0, sysctl_scsi_delay, "I", "Delay to allow devices to settle after a SCSI bus reset (ms)"); static int |