linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [HELP] How to get task_struct from mm
@ 2019-05-30  6:57 Yang Shi
  2019-05-30  7:26 ` Yang Shi
  2019-05-30 15:41 ` Michal Hocko
  0 siblings, 2 replies; 5+ messages in thread
From: Yang Shi @ 2019-05-30  6:57 UTC (permalink / raw)
  To: Mel Gorman, Michal Hocko, Andrew Morton; +Cc: linux-mm, linux-kernel

Hi folks,


As what we discussed about page demotion for PMEM at LSF/MM, the 
demotion should respect to the mempolicy and allowed mems of the process 
which the page (anonymous page only for now) belongs to.


The vma that the page is mapped to can be retrieved from rmap walk 
easily, but we need know the task_struct that the vma belongs to. It 
looks there is not such API, and container_of seems not work with 
pointer member.


Any suggestion?


Thanks,

Yang


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-31 13:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30  6:57 [HELP] How to get task_struct from mm Yang Shi
2019-05-30  7:26 ` Yang Shi
2019-05-30 15:41 ` Michal Hocko
2019-05-31 12:51   ` Yang Shi
2019-05-31 13:56     ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox