diff options
| author | Oleg Nesterov <[email protected]> | 2010-05-26 21:43:19 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-05-27 16:12:46 +0000 |
| commit | d40e48e02f3785b9342ee4eb3d7cc9f12981b7f5 (patch) | |
| tree | 05f900ae17f4727c0e8b8c2c84d41b1cee7c13b0 /fs/proc/array.c | |
| parent | signals: kill the awful task_rq_unlock_wait() hack (diff) | |
| download | kernel-d40e48e02f3785b9342ee4eb3d7cc9f12981b7f5.tar.gz kernel-d40e48e02f3785b9342ee4eb3d7cc9f12981b7f5.zip | |
exit: __exit_signal: use thread_group_leader() consistently
Cleanup:
- Add the boolean, group_dead = thread_group_leader(), for clarity.
- Do not test/set sig == NULL to detect the all-dead case, use this
boolean.
- Pass this boolen to __unhash_process() and use it instead of another
thread_group_leader() call which needs ->group_leader.
This can be considered as microoptimization, but hopefully this also
allows us do do other cleanups later.
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: Veaceslav Falico <[email protected]>
Cc: Stanislaw Gruszka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
