Re: [PATCH 1/1] psi: move PF_MEMSTALL out of task->flags

From: Johannes Weiner
Date: Mon Mar 16 2020 - 12:13:31 EST


On Mon, Mar 16, 2020 at 06:46:25AM -0400, Yafang Shao wrote:
> The task->flags is a 32-bits flag, in which 31 bits have already been
> consumed. So it is hardly to introduce other new per process flag.
> Currently there're still enough spaces in the bit-field section of
> task_struct, so we can define the memstall state as a single bit in
> task_struct instead.
>
> Suggested-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>

Thanks for reworking it. This looks good to me.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>