[PATCH] zsmalloc: Fix races between modifications of fullness and isolated

Sergey Senozhatsky senozhatsky at chromium.org
Tue Jul 25 19:57:11 PDT 2023


On (23/07/26 11:31), Sergey Senozhatsky wrote:
> On (23/07/21 14:37), Andrew Yang wrote:
> > 
> > Since fullness and isolated share the same unsigned int,
> > modifications of them should be protected by the same lock.
> 
> Sorry, I don't think I follow. Can you please elaborate?
> What is fullness in this context?

Oh, my bad, so that's zspage's fullness:FULLNESS_BITS and
isolated:ISOLATED_BITS.  I somehow thought about something
very different (page isolated, not zspage isolated).



More information about the Linux-mediatek mailing list