lkml.org 
[lkml]   [2021]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [RFC PATCH v2 02/18] mm: memcontrol: bail out early when !mm in get_mem_cgroup_from_mm
    On Fri, Apr 9, 2021 at 5:32 AM Muchun Song <songmuchun@bytedance.com> wrote:
    >
    > When mm is NULL, we do not need to hold rcu lock and call css_tryget for
    > the root memcg. And we also do not need to check !mm in every loop of
    > while. So bail out early when !mm.
    >
    > Signed-off-by: Muchun Song <songmuchun@bytedance.com>
    > Acked-by: Johannes Weiner <hannes@cmpxchg.org>

    Reviewed-by: Shakeel Butt <shakeelb@google.com>

    \
     
     \ /
      Last update: 2021-04-10 19:47    [W:4.378 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site