Re: [PATCH] sched/debug: Remove mpol_get/put and task_lock/unlock from sched_show_numa

From: Peter Zijlstra
Date: Tue Jan 18 2022 - 06:20:09 EST


On Tue, Jan 18, 2022 at 10:35:15AM +0530, Bharata B Rao wrote:
> The older format of /proc/pid/sched printed home node info which
> required the mempolicy and task lock around mpol_get(). However
> the format has changed since then and there is no need for
> sched_show_numa() any more to have mempolicy argument,
> asssociated mpol_get/put and task_lock/unlock. Remove them.
>
> Fixes: 397f2378f1361 ("sched/numa: Fix numa balancing stats in /proc/pid/sched")
> Signed-off-by: Bharata B Rao <bharata@xxxxxxx>

Thanks!