Thread (33 messages) 33 messages, 3 authors, 2025-07-11

Re: [PATCH v2 12/29] mm/zsmalloc: stop using __ClearPageMovable()

From: Sergey Senozhatsky <senozhatsky@chromium.org>
Date: 2025-07-07 02:39:17
Also in: linux-doc, linux-fsdevel, linux-mm, lkml, virtualization

On (25/07/04 12:25), David Hildenbrand wrote:
Instead, let's check in the callbacks if the page was already destroyed,
which can be checked by looking at zpdesc->zspage (see reset_zpdesc()).

If we detect that the page was destroyed:

(1) Fail isolation, just like the migration core would

(2) Fake migration success just like the migration core would

In the putback case there is nothing to do, as we don't do anything just
like the migration core would do.

In the future, we should look into not letting these pages get destroyed
while they are isolated -- and instead delaying that to the
putback/migration call. Add a TODO for that.

Reviewed-by: Harry Yoo <redacted>
Reviewed-by: Lorenzo Stoakes <redacted>
Signed-off-by: David Hildenbrand <redacted>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help