From: Oleg Nesterov Date: Wed, 17 Jun 2009 23:27:34 +0000 (-0700) Subject: ptrace_get_task_struct: s/tasklist/rcu/, make it static X-Git-Tag: v2.6.31-rc1~217 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8053bdd5ce15dcf043d41a4dd6cac4a5567effdc;p=pandora-kernel.git ptrace_get_task_struct: s/tasklist/rcu/, make it static - Use rcu_read_lock() instead of tasklist_lock to find/get the task in ptrace_get_task_struct(). - Make it static, it has no callers outside of ptrace.c. - The comment doesn't match the reality, this helper does not do any checks. Beacuse it is really trivial and static I removed the whole comment. Signed-off-by: Oleg Nesterov Acked-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed