Re: [PATCH] mm: memcg: flush empty per-cpu stock slots on memcg offlining
Michal Hocko <[email protected]>
| Newsgroups | org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <aoLGzZHS8kj53-ey@tiehlicka> |
On Mon 17-08-26 10:59:17, Song Hu wrote: > refill_stock() takes a css reference for each cached memcg slot and > mem_cgroup_css_offline() relies on drain_all_stock() to release those > references before the cgroup can finish dying. > > consume_stock() can drive a slot's nr_pages to zero while its cached[] > pointer stays set. Is there any specific reason why the memcg stays in the cache slot without any pages? -- Michal Hocko SUSE Labs