Re: [PATCH v2 0/3] cgroup/dmem: allow atomic irrestrictive writes to dmem.max
From: Tejun Heo
Date: Sat Mar 21 2026 - 15:27:24 EST
Hello,
Generally looks okay to me. One comment on 3/3 â?? the naked xchg() in
set_resource_max() needs a comment explaining why it's used instead of
page_counter_set_max() and what the semantics are (unconditionally sets max
regardless of current usage to prevent further allocations, since there's no
eviction mechanism yet).
Applied 1/3. Maarten, Michal, what do you think?
Thanks.
--
tejun