Re: [PATCH 1/1] mm/thp: clear deferred split shrinker bits when queues drain
From: Usama Arif
Date: Tue Jun 02 2026 - 06:42:49 EST
On 02/06/2026 05:34, Lance Yang wrote:
> From: Lance Yang <lance.yang@xxxxxxxxx>
>
> deferred_split_count() returns the raw list_lru count. When the per-memcg,
> per-node list is empty, that count is 0.
>
> That skips scanning, but it does not tell memcg reclaim that the shrinker
> is empty. shrink_slab_memcg() only clears the memcg shrinker bit when the
> count callback reports SHRINK_EMPTY.
>
> Return SHRINK_EMPTY for an empty deferred split list, so the bit can be
> cleared once the queue has drained.
>
> Signed-off-by: Lance Yang <lance.yang@xxxxxxxxx>
Same as slab, workingset and others.
Acked-by: Usama Arif <usama.arif@xxxxxxxxx>