On Mon, Mar 10, 2025 at 01:16:45PM +0100, Alexei Starovoitov wrote: > From 69b3d1631645c82d9d88f17fb01184d24034df2b Mon Sep 17 00:00:00 2001 > From: Vlastimil Babka <vbabka@xxxxxxx> > Date: Mon, 10 Mar 2025 11:57:52 +0100 > Subject: [PATCH] mm: Fix the flipped condition in gfpflags_allow_spinning() > > The function gfpflags_allow_spinning() has a bug that makes it return > the opposite result than intended. This could contribute to deadlocks as > usage profilerates, for now it was noticed as a performance regression > due to try_charge_memcg() not refilling memcg stock when it could. Fix > the flipped condition. > > Fixes: 97769a53f117 ("mm, bpf: Introduce try_alloc_pages() for > opportunistic page allocation") > Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> > Closes: https://lore.kernel.org/oe-lkp/202503101254.cfd454df-lkp@xxxxxxxxx > > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>