| Date | Fri, 7 Nov 2014 21:14:24 +0100 | From | Oleg Nesterov <> | Subject | [PATCH 0/4] proc: deuglify task_state() |
| |
Hello.
I tried to optimize the usage of tasklist_lock in exit_notify() paths but found the bug which should be fixed first: the EXIT_DEAD setting in reparent_leader() can break the task_ppid_nr_ns()-like code and ptrace_parent().
I am still thinking about the "right" fix, but whatever we do we need to cleanup these users, probably before the fix.
One particular user is task_state(), but it also asks for other off- topic cleanups which I believe make sense anyway, lets do this first.
Oleg.
fs/proc/array.c | 47 ++++++++++++++++++++++------------------------- 1 files changed, 22 insertions(+), 25 deletions(-)
|