]> granicus.if.org Git - zfs/commit
Fix for ARC sysctls ignored at runtime master
authorloli10K <loli10K@users.noreply.github.com>
Sat, 26 Oct 2019 22:22:19 +0000 (00:22 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 26 Oct 2019 22:22:19 +0000 (15:22 -0700)
commite35704647e84c62c6a6017ead0b66b446010e4ff
treeda45b7d329f00cf2aaa2b6e0420a933e1d6784fd
parent6963414d7049b52047982fd94bfc16522bc5c26c
Fix for ARC sysctls ignored at runtime

This change leverage module_param_call() to run arc_tuning_update()
immediately after the ARC tunable has been updated as suggested in
cffa8372 code review.

A simple test case is added to the ZFS Test Suite to prevent future
regressions in functionality.

Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #9487
Closes #9489
include/os/linux/kernel/linux/mod_compat.h
include/sys/arc_impl.h
include/sys/zfs_context.h
module/os/linux/zfs/arc_os.c
module/zfs/arc.c
module/zfs/spa_misc.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/arc/Makefile.am
tests/zfs-tests/tests/functional/arc/arcstats_runtime_tuning.ksh [new file with mode: 0755]
tests/zfs-tests/tests/perf/perf.shlib