summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2024-10-29 00:36:15 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 20:03:11 +0100
commit0ab037634ba53f35d8d94343e151f18d492dbdee (patch)
tree1721c8c4b2eb6d7848595e70b95f8c991f0881b2 /kernel
parent4e51552bc5d8e976d695ab79c3d7917da93b5b63 (diff)
downloadlinux-0ab037634ba53f35d8d94343e151f18d492dbdee.tar.gz
linux-0ab037634ba53f35d8d94343e151f18d492dbdee.tar.bz2
linux-0ab037634ba53f35d8d94343e151f18d492dbdee.zip
zram: clear IDLE flag in mark_idle()
[ Upstream commit d37da422edb0664a2037e6d7d42fe6d339aae78a ] 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/20241028153629.1479791-3-senozhatsky@chromium.org Fixes: 755804d16965 ("zram: introduce an aged idle interface") Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> Reported-by: Shin Kawamura <kawasin@google.com> Acked-by: Brian Geffon <bgeffon@google.com> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: <stable@vger.kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions