attach_pid() with struct pid parameter
attach_pid() currently takes a pid_t and then uses find_pid() to find the corresponding struct pid. Sometimes we already have the struct pid. We can then skip find_pid() if attach_pid() were to take a struct pid parameter. Signed-off-by:Sukadev Bhattiprolu <sukadev@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> Cc: <containers@lists.osdl.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/exec.c 1 addition, 1 deletionfs/exec.c
- include/linux/pid.h 1 addition, 2 deletionsinclude/linux/pid.h
- kernel/exit.c 2 additions, 2 deletionskernel/exit.c
- kernel/fork.c 7 additions, 4 deletionskernel/fork.c
- kernel/pid.c 6 additions, 3 deletionskernel/pid.c
- kernel/sys.c 1 addition, 1 deletionkernel/sys.c
Loading
Please register or sign in to comment