Re: [PATCH v5] hugetlb: Add hugetlb.*.numa_stat file

From: Mina Almasry
Date: Wed Nov 10 2021 - 19:30:44 EST


On Wed, Nov 10, 2021 at 4:08 PM Shakeel Butt <shakeelb@xxxxxxxxxx> wrote:
>
> On Wed, Nov 10, 2021 at 3:01 PM Mina Almasry <almasrymina@xxxxxxxxxx> wrote:
> >
> [...]
> >
> > +struct hugetlb_cgroup_per_node {
> > + /* hugetlb usage in pages over all hstates. */
> > + unsigned long usage[HUGE_MAX_HSTATE];
> > +};
> > +
>
> You missed my other question. Why do you think concurrent access to
> this struct is safe?

Oh, very sorry. I'll upload another iteration with a fix!