On Tue, 26 Apr 2022 02:17:42 +0000 Wei Yang <richard.weiyang@xxxxxxxxx> wrote: > node_page_list would always be !empty on finishing the loop, except > page_list is empty. > > Let's handle empty page_list before doing any real work including > touching PF_MEMALLOC flag. Please see https://lkml.kernel.org/r/20220425111232.23182-3-linmiaohe@xxxxxxxxxx I'll skip this patch.