Re: [PATCH v5 0/3] mm: fix workingset refaults in the zswap writeback path
From: Chris Li
Date: Wed Dec 02 2026 - 20:51:46 EST
On Wed, Dec 2, 2026 at 5:12 PM Yosry Ahmed <yosry@xxxxxxxxxx> wrote:
>
> On Wed, Dec 2, 2026 at 10:55 AM Chris Li <chrisl@xxxxxxxxxx> wrote:
> I think we still need to go through the swapcache to synchronize
> incoming page faults on the writeback page, otherwise we could end up
> with 2 copies of the page, right?
The incoming page fault is still using the current swap cache part. So
two page faults are fine there. The write back is using a different
folio not insert into the swap cache. However the folio being written
back is not visible to the process so that is fine. The page fault
data will load from the zswap entry into the swap cache.
Chris