Eric W. Biederman
c18258c6f0
[PATCH] pid: Implement transfer_pid and use it to simplify de_thread
...
In de_thread we move pids from one process to another, a rather ugly case.
The function transfer_pid makes it clear what we are doing, and makes the
action atomic. This is useful we ever want to atomically traverse the
process group and session lists, in a rcu safe manner.
Even if the atomic properties this change should be a win as transfer_pid
should be less code to execute than executing both attach_pid and
detach_pid, and this should make de_thread slightly smaller as only a
single function call needs to be emitted. The only downside is that the
code might be slower to execute as the odds are against transfer_pid being
in cache.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com >
Cc: Oleg Nesterov <oleg@tv-sign.ru >
Signed-off-by: Andrew Morton <akpm@osdl.org >
Signed-off-by: Linus Torvalds <torvalds@osdl.org >
2006-09-27 08:26:19 -07:00
..
2006-09-24 19:28:47 -07:00
2006-09-22 14:55:33 -07:00
2006-09-22 15:20:20 -07:00
2006-09-22 14:55:33 -07:00
2006-09-27 08:26:18 -07:00
2006-09-22 23:25:01 -04:00
2006-09-24 11:13:19 -04:00
2006-09-26 17:43:53 -07:00
2006-09-23 21:03:52 -05:00
2006-09-26 08:48:45 -07:00
2006-09-27 08:26:14 -07:00
2006-09-24 11:13:19 -04:00
2006-09-25 21:08:39 -07:00
2006-09-26 08:49:03 -07:00
2006-09-26 08:48:59 -07:00
2006-09-22 23:24:30 -04:00
2006-09-24 17:56:32 -03:00
2006-09-25 21:08:40 -07:00
2006-09-26 10:52:38 +02:00
2006-09-24 11:13:19 -04:00
2006-09-27 08:26:19 -07:00
2006-09-26 08:48:54 -07:00
2006-09-26 08:48:56 -07:00
2006-09-27 08:26:18 -07:00
2006-09-24 11:13:19 -04:00
2006-09-27 08:26:10 -07:00
2006-09-27 08:26:10 -07:00
2006-09-27 08:26:09 -07:00
2006-09-22 15:18:10 -07:00
2006-09-22 15:18:47 -07:00
2006-09-27 08:26:18 -07:00
2006-09-22 15:18:51 -07:00
2006-09-26 10:52:28 +02:00
2006-09-27 08:26:12 -07:00
2006-09-26 08:48:46 -07:00
2006-09-26 15:38:51 -07:00
2006-09-26 15:38:52 -07:00
2006-09-26 15:38:52 -07:00
2006-09-22 15:20:29 -07:00
2006-09-22 14:53:50 -07:00
2006-09-22 15:07:00 -07:00
2006-09-22 15:18:29 -07:00
2006-09-22 15:18:01 -07:00
2006-09-27 08:26:17 -07:00
2006-09-22 15:20:25 -07:00
2006-09-26 08:48:53 -07:00
2006-09-24 11:13:19 -04:00
2006-09-27 08:26:10 -07:00
2006-09-24 11:13:19 -04:00
2006-09-26 10:52:42 +02:00
2006-09-24 22:06:48 +01:00
2006-09-27 08:26:12 -07:00
2006-09-25 21:08:39 -07:00
2006-09-25 15:33:09 -04:00
2006-09-26 10:52:34 +02:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:48:47 -07:00
2006-09-24 11:13:19 -04:00
2006-09-27 08:26:12 -07:00
2006-09-27 08:26:15 -07:00
2006-09-27 08:26:13 -07:00
2006-09-27 08:26:19 -07:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-09-22 14:54:04 -07:00
2006-09-22 14:54:20 -07:00
2006-09-24 10:15:13 -07:00
2006-09-22 15:18:31 -07:00
2006-09-22 15:19:51 -07:00
2006-09-22 14:53:54 -07:00
2006-09-22 23:24:54 -04:00
2006-09-24 11:13:19 -04:00
2006-09-22 23:24:32 -04:00
2006-09-22 23:24:53 -04:00
2006-09-26 08:48:49 -07:00
2006-09-26 08:48:48 -07:00
2006-09-27 08:09:15 -07:00
2006-09-26 17:43:52 -07:00
2006-09-26 17:43:54 -07:00
2006-09-26 17:43:53 -07:00
2006-09-26 08:48:47 -07:00
2006-09-27 08:26:19 -07:00
2006-09-22 15:18:12 -07:00
2006-09-25 21:08:38 -07:00
2006-09-25 21:08:37 -07:00
2006-09-27 08:26:14 -07:00
2006-09-24 11:13:19 -04:00
2006-09-24 11:13:19 -04:00
2006-09-26 08:49:04 -07:00
2006-09-26 08:48:44 -07:00
2006-09-22 14:55:02 -07:00
2006-09-26 10:52:38 +02:00
2006-09-22 14:53:36 -07:00
2006-09-26 08:48:52 -07:00
2006-09-22 14:53:53 -07:00
2006-09-27 08:26:11 -07:00
2006-09-27 08:26:18 -07:00
2006-09-26 08:48:56 -07:00
2006-09-22 14:55:16 -07:00
2006-09-26 10:52:34 +02:00
2006-09-26 08:49:02 -07:00
2006-09-26 08:48:58 -07:00
2006-09-26 10:52:28 +02:00
2006-09-26 13:07:55 -07:00
2006-09-25 21:08:39 -07:00
2006-09-24 11:13:19 -04:00
2006-09-26 10:52:37 +02:00
2006-09-27 08:26:13 -07:00
2006-09-26 08:48:47 -07:00
2006-09-26 08:48:44 -07:00
2006-09-22 15:08:35 -07:00