[PATCH 0/4] proc: deuglify task_state()

From: Oleg Nesterov
Date: Fri Nov 07 2014 - 15:14:17 EST


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(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/