]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/arc.c
Make L2ARC tests more robust
authorGeorge Amanakis <gamanakis@gmail.com>
Mon, 5 Oct 2020 22:29:05 +0000 (18:29 -0400)
committerGitHub <noreply@github.com>
Mon, 5 Oct 2020 22:29:05 +0000 (15:29 -0700)
commita76e4e676180acad9e12f5a1e03f5ff48ec85983
tree9872835cd6d2b2b3aab83b2d1f963cb4fd52faeb
parent4e84f67a96837008735e988b84309f9b292de26f
Make L2ARC tests more robust

Instead of relying on arbitrary timers after pool export/import or cache
device off/online rely on arcstats. This makes the L2ARC tests more
robust. Also cleanup some functions related to persistent L2ARC.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #10983
13 files changed:
module/zfs/arc.c
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/include/tunables.cfg
tests/zfs-tests/tests/functional/l2arc/l2arc_arcstats_pos.ksh
tests/zfs-tests/tests/functional/l2arc/l2arc_mfuonly_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_001_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_002_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_003_neg.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_004_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_005_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_006_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_007_pos.ksh
tests/zfs-tests/tests/functional/l2arc/persist_l2arc_008_pos.ksh