]> git.hungrycats.org Git - linux/commit
[PATCH] fixed pidhashing patch
authorKirill Korotaev <kksx@mail.ru>
Thu, 2 Sep 2004 07:42:48 +0000 (00:42 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Sep 2004 07:42:48 +0000 (00:42 -0700)
commit37cbd41da09cb39c9896c04ed8baac7526bb9547
treec56359f143f02c3cf50996fb25a82fe896fae1ff
parent3345ee71e2303c7c3d70de11d812306adc648865
[PATCH] fixed pidhashing patch

This patch fixes strange and obscure pid implementation in current kernels:
- it removes calling of put_task_struct() from detach_pid()
  under tasklist_lock. This allows to use blocking calls
  in security_task_free() hooks (in __put_task_struct()).
- it saves some space = 5*5 ints = 100 bytes in task_struct
- it's smaller and tidy, more straigthforward and doesn't use
  any knowledge about pids using and assignment.
- it removes pid_links and pid_struct doesn't hold reference counters
  on task_struct. instead, new pid_structs and linked altogether and
  only one of them is inserted in hash_list.

Signed-off-by: Kirill Korotaev (kksx@mail.ru)
Signed-off-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tty_io.c
fs/fcntl.c
fs/proc/base.c
include/linux/pid.h
include/linux/sched.h
kernel/capability.c
kernel/exit.c
kernel/fork.c
kernel/pid.c
kernel/signal.c
kernel/sys.c