Skip to content
Commit 47f131df authored by Yafang Shao's avatar Yafang Shao Committed by Cykeek
Browse files

BACKPORT: psi: Move PF_MEMSTALL out of task->flags



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.
This patch also removes an out-of-date comment pointed by Matthew.

Suggested-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarJohannes Weiner <hannes@cmpxchg.org>
Link: https://lkml.kernel.org/r/1584408485-1921-1-git-send-email-laoar.shao@gmail.com


Signed-off-by: default avatarAarqw12 <lcockx@protonmail.com>
Signed-off-by: default avatarprorooter007 <shreyashwasnik112@gmail.com>
Signed-off-by: default avatarMarco Zanin <mrczn.bb@gmail.com>
parent 2324d57e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment