lkml.org 
[lkml]   [2023]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v6 44/45] mm: shrinker: hold write lock to reparent shrinker nr_deferred
From
Date


> On Sep 11, 2023, at 17:44, Qi Zheng <zhengqi.arch@bytedance.com> wrote:
>
> For now, reparent_shrinker_deferred() is the only holder of read lock of
> shrinker_rwsem. And it already holds the global cgroup_mutex, so it will
> not be called in parallel.
>
> Therefore, in order to convert shrinker_rwsem to shrinker_mutex later,
> here we change to hold the write lock of shrinker_rwsem to reparent.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>

Reviewed-by: Muchun Song <songmuchun@bytedance.com>

Thanks.

\
 
 \ /
  Last update: 2023-09-18 09:20    [W:0.335 / U:1.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site