[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b3a200b7-e9c5-4627-409c-e198ac1dc30a@suse.cz>
Date: Thu, 9 Mar 2023 10:23:57 +0100
From: Vlastimil Babka <vbabka@...e.cz>
To: Qi Zheng <zhengqi.arch@...edance.com>, akpm@...ux-foundation.org,
tkhai@...ru, hannes@...xchg.org, shakeelb@...gle.com,
mhocko@...nel.org, roman.gushchin@...ux.dev, muchun.song@...ux.dev,
david@...hat.com, shy828301@...il.com, rppt@...nel.org
Cc: sultan@...neltoast.com, dave@...olabs.net,
penguin-kernel@...ove.SAKURA.ne.jp, paulmck@...nel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 4/8] mm: vmscan: add shrinker_srcu_generation
On 3/7/23 07:56, Qi Zheng wrote:
> From: Kirill Tkhai <tkhai@...ru>
>
> After we make slab shrink lockless with SRCU, the longest
> sleep unregister_shrinker() will be a sleep waiting for
> all do_shrink_slab() calls.
>
> To aviod long unbreakable action in the unregister_shrinker(),
^ avoid
> add shrinker_srcu_generation to restore a check similar to the
> rwsem_is_contendent() check that we had before.
>
> And for memcg slab shrink, we unlock SRCU and continue
> iterations from the next shrinker id.
>
> Signed-off-by: Kirill Tkhai <tkhai@...ru>
> Signed-off-by: Qi Zheng <zhengqi.arch@...edance.com>
Acked-by: Vlastimil Babka <vbabka@...e.cz>
Powered by blists - more mailing lists