]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] tty: update the tty layer to work with struct pid
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 12 Feb 2007 08:53:00 +0000 (00:53 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 12 Feb 2007 17:48:32 +0000 (09:48 -0800)
commit4717b584743cbd2f2932cbcbcff26c3996a3a155
treef9d6449c4d8c9508fd43edfe845108043e1536b2
parent192b548b200b3a09678fdc6c9d5ea2ed8cfceaa1
[PATCH] tty: update the tty layer to work with struct pid

Of kernel subsystems that work with pids the tty layer is probably the largest
consumer.  But it has the nice virtue that the assiation with a session only
lasts until the session leader exits.  Which means that no reference counting
is required.  So using struct pid winds up being a simple optimization to
avoid hash table lookups.

In the long term the use of pid_nr also ensures that when we have multiple pid
spaces mixed everything will work correctly.

Signed-off-by: Eric W. Biederman <eric@maxwell.lnxi.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/line.c
drivers/char/ip2/ip2main.c
drivers/char/n_tty.c
drivers/char/tty_io.c
drivers/char/vt.c
fs/proc/array.c
include/linux/init_task.h
include/linux/sched.h
include/linux/tty.h
kernel/fork.c
kernel/sys.c