From: Oleg Nesterov Date: Wed, 10 Dec 2014 23:45:15 +0000 (-0800) Subject: proc: task_state: move the main seq_printf() outside of rcu_read_lock() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~103 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0fafc11115938a3215723f37e8e9cc6a94b05b0;p=pandora-kernel.git proc: task_state: move the main seq_printf() outside of rcu_read_lock() task_state() does seq_printf() under rcu_read_lock(), but this is only needed for task_tgid_nr_ns() and task_numa_group_id(). We can calculate tgid/ngid and drop rcu lock. Signed-off-by: Oleg Nesterov Cc: Aaron Tomlin Cc: Alexey Dobriyan Cc: "Eric W. Biederman" , Cc: Sterling Alexander Cc: Peter Zijlstra Cc: Roland McGrath Reviewed-by: Paul E. McKenney Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed