Re: [PATCH v2] pids: introduce find_get_task_by_vpid helper

From: Balbir Singh
Date: Mon Oct 30 2017 - 04:51:49 EST


On Sat, Oct 28, 2017 at 4:52 AM, Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> wrote:
> There are several functions that do find_task_by_vpid() followed by
> get_task_struct(). We can use a helper function instead.
>
> Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx>
> ---

I did a quick grep and found other similar patterns in
kernel/events/core.c, kernel/kcmp.c
kernel/sys.c , kernel/time/posix-cpu-timers.c,
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c,
security/yama/yama_lsm.c, mm/process_vm_access.c, mm/mempolicy.c and
arch/ia64/kernel/perfmon.c


Balbir Singh.