Re: [PATCH v3] mm: slub: avoid wake up kswapd in set_track_prepare
From: Matthew Wilcox
Date: Mon Aug 25 2025 - 08:40:39 EST
On Mon, Aug 25, 2025 at 08:17:37PM +0800, yangshiguang1011@xxxxxxx wrote:
> Avoid deadlock caused by implicitly waking up kswapd by
> passing in allocation flags.
[...]
> + /* Preemption is disabled in ___slab_alloc() */
> + gfp_flags &= ~(__GFP_DIRECT_RECLAIM);
If you don't mean __GFP_KSWAPD_RECLAIM here, the explanation needs to
be better.