diff options
author | Nhat Pham <[email protected]> | 2023-10-20 15:20:09 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-11-01 12:38:35 -0700 |
commit | 6479b29203dedb724f4f4e08e1cc0dcf432c333b (patch) | |
tree | 427917074c65fc0b86b793f688f614928c95e240 /tools/perf/util/trace-event-scripting.c | |
parent | 9e1b016a0bc97112a18427bce1b6849d28c6eb91 (diff) |
selftests: add a sanity check for zswap
We recently encountered a bug that makes all zswap store attempt fail.
Specifically, after:
"141fdeececb3 mm/zswap: delay the initialization of zswap"
if we build a kernel with zswap disabled by default, then enabled after
the swapfile is set up, the zswap tree will not be initialized. As a
result, all zswap store calls will be short-circuited. We have to perform
another swapon to get zswap working properly again.
Fortunately, this issue has since been fixed by the patch that kills
frontswap:
"42c06a0e8ebe mm: kill frontswap"
which performs zswap_swapon() unconditionally, i.e always initializing
the zswap tree.
This test add a sanity check that ensure zswap storing works as
intended.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Nhat Pham <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: Domenico Cerasuolo <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Zefan Li <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions