aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2021-03-31 13:56:37 -0400
committerBrian Behlendorf <[email protected]>2021-04-01 08:45:04 -0700
commit032a213e2e6b791364301e9de029e7b8189a69a0 (patch)
tree2b90ef27778f0b6039b7212c39c47d80705ce63e /module
parent3ba10f9a6ae3c1b339fb7ff78a6bc9c314e3e08c (diff)
Don't scale zfs_zevent_len_max by CPU count
The lower bound for this scaling to too low and the upper bound is too high. Use a fixed default length of 512 instead, which is a reasonable value on any system. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #11822
Diffstat (limited to 'module')
-rw-r--r--module/zfs/fm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/module/zfs/fm.c b/module/zfs/fm.c
index c79d291ab..72162afd5 100644
--- a/module/zfs/fm.c
+++ b/module/zfs/fm.c
@@ -69,7 +69,7 @@
#include <sys/console.h>
#include <sys/zfs_ioctl.h>
-int zfs_zevent_len_max = 0;
+int zfs_zevent_len_max = 512;
int zfs_zevent_cols = 80;
int zfs_zevent_console = 0;
@@ -1620,9 +1620,6 @@ fm_init(void)
zevent_len_cur = 0;
zevent_flags = 0;
- if (zfs_zevent_len_max == 0)
- zfs_zevent_len_max = ERPT_MAX_ERRS * MAX(max_ncpus, 4);
-
/* Initialize zevent allocation and generation kstats */
fm_ksp = kstat_create("zfs", 0, "fm", "misc", KSTAT_TYPE_NAMED,
sizeof (struct erpt_kstat) / sizeof (kstat_named_t),