diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-12-10 15:45:15 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:41:09 -0800 |
commit | b0fafc11115938a3215723f37e8e9cc6a94b05b0 (patch) | |
tree | d2bf204d75d4bbde98e9a3b83b812c3c8bceda20 /tools | |
parent | 0f4a0d53f20c76a70cb5b69b6aa237de2107e171 (diff) | |
download | lwn-b0fafc11115938a3215723f37e8e9cc6a94b05b0.tar.gz lwn-b0fafc11115938a3215723f37e8e9cc6a94b05b0.zip |
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 <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>,
Cc: Sterling Alexander <stalexan@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Roland McGrath <roland@hack.frob.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions