On Wed, 27 Apr 2022 23:25:31 +0000 Wei Yang <richard.weiyang@xxxxxxxxx> wrote: > On Tue, Apr 26, 2022 at 02:47:25PM -0700, Andrew Morton wrote: > >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 > > Aha, I have thought about this. > > The following change is still valid, could I rebase on top of this? > Sure, please do.