lkml.org 
[lkml]   [2021]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7 1/2] mm: introduce process_mrelease system call
On Thu 05-08-21 11:37:06, Suren Baghdasaryan wrote:
[...]
> > One question I have is why mmget() and not mmgrab()? I see mmgrab() in
> > oom_kill.c.
>
> You are likely right here. The caller's context probably can't be
> considered a "real user" when reaping the mm. However, we take an
> mmap_lock shortly after, so not sure if in practice there is much
> difference.
> Michal, WDYT?

As explained in other response. mmget is to pin address space to not go
away. You do not need that for this purpose. All you need is to pin mm
to not go away. Address space can be unmapped concurrently.
--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2021-08-06 08:43    [W:0.062 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site