Re: [PATCH] mm/page_alloc: detect allocation forbidden by cpuset and bail out early

From: Michal Hocko
Date: Fri Sep 10 2021 - 07:44:02 EST


On Fri 10-09-21 19:29:53, Feng Tang wrote:
[...]
> > Sorry I didn't really get to read this previously. The implementation
> > works but I find it harder to read than really necessary. Why don't you
> > use first_zones_zonelist here as well?
>
> The concern I had was which zonelist to use, local node or the first node
> of nodemask's node_zonelists[ZONELIST_FALLBACK],

I am not sure I see your concern. Either of the two should work just
fine because all nodes should be reachable from the zonelist. But why
don't you simply do the same kind of check as in the page allocator?
--
Michal Hocko
SUSE Labs