Re: [v3 PATCH 0/3] mm/mempolicy: some fix and semantics cleanup
From: Michal Hocko <mhocko@suse.com>
Date: 2021-06-01 08:48:29
Also in:
lkml
From: Michal Hocko <mhocko@suse.com>
Date: 2021-06-01 08:48:29
Also in:
lkml
On Tue 01-06-21 08:55:13, Feng Tang wrote: [...]
Current memory policy code has some confusing and ambiguous part about MPOL_LOCAL policy, as it is handled as a faked MPOL_PREFERRED one, and there are many places having to distinguish them. Also the nodemask intersection check needs cleanup to be more explicit for OOM use, and handle MPOL_INTERLEAVE correctly. This patchset cleans up these and unifies the parameter sanity check for mbind() and set_mempolicy().
Looks good to me. I would just add that this cleanup helps to make further changes easier (notably MPOL_PREFERRED_MANY) -- Michal Hocko SUSE Labs