diff options
author | Sergey Senozhatsky <[email protected]> | 2024-10-29 00:36:15 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-11 13:09:35 -0800 |
commit | d37da422edb0664a2037e6d7d42fe6d339aae78a (patch) | |
tree | dd1c3270bc1b42ed94eedf020c7e13576e4f4abc /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f85219096648b251a81e9fe24a1974590cfc417d (diff) |
zram: clear IDLE flag in mark_idle()
If entry does not fulfill current mark_idle() parameters, e.g. cutoff
time, then we should clear its ZRAM_IDLE from previous mark_idle()
invocations.
Consider the following case:
- mark_idle() cutoff time 8h
- mark_idle() cutoff time 4h
- writeback() idle - will writeback entries with cutoff time 8h,
while it should only pick entries with cutoff time 4h
The bug was reported by Shin Kawamura.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 755804d16965 ("zram: introduce an aged idle interface")
Signed-off-by: Sergey Senozhatsky <[email protected]>
Reported-by: Shin Kawamura <[email protected]>
Acked-by: Brian Geffon <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions