diff options
author | Domenico Cerasuolo <[email protected]> | 2023-06-14 16:31:22 +0200 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-06-19 16:19:33 -0700 |
commit | 418fd29d9de53b143e28a07430e08dd414b74c3d (patch) | |
tree | 6b0623257b4c5a129d8956b00da741000bddb0fb /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 6c77b607ee26472fb945aa41734281c39d06d68f (diff) |
mm: zswap: invaldiate entry after writeback
When an entry started writeback, it used to be invalidated with ref count
logic alone, meaning that it would stay on the tree until all references
were put. The problem with this behavior is that as soon as the writeback
started, the ownership of the data held by the entry is passed to the
swapcache and should not be left in zswap too. Currently there are no
known issues because of this, but this change explicitly invalidates an
entry that started writeback to reduce opportunities for future bugs.
This patch is a follow up on the series titled "mm: zswap: move writeback
LRU from zpool to zswap" + commit f090b7949768("mm: zswap: support
exclusive loads").
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Domenico Cerasuolo <[email protected]>
Suggested-by: Johannes Weiner <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Nhat Pham <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Yosry Ahmed <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions