Re: [PATCH v8 4/4] mm: swap: filter swap allocation by memcg tier mask

From: YoungJun Park

Date: Wed Jun 17 2026 - 02:24:51 EST


https://sashiko.dev/#/patchset/20260617053447.2831896-1-youngjun.park@xxxxxxx?part=4

Regarding the review from Sachiko.

The AI review pointed out two things. a pre-existing issue and a valid
issue regarding swap_sync_discard().

For the pre-existing issue, I believe it is out of scope to address it
together in this patchset.

However, the second point is a valid issue. For the case where
swap_sync_discard() discards a non-selected tier, succeeds, and then
retries swap allocation. I will fix this in the next version by
checking the memcg mask within swap_sync_discard().