cpu/hotplug: Read_lock(tasklist_lock) doesn't need to disable irqs
authorOleg Nesterov <oleg@redhat.com>
Thu, 10 Sep 2015 13:07:50 +0000 (15:07 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 12 Sep 2015 09:54:27 +0000 (11:54 +0200)
commita75a6068dac25d4022ebcd82192ed6345407843c
treea7cdae114427b720256d1e1576c375e4c2c90cd0
parent5473e0cc37c03c576adbda7591a6cc8e37c1bb7f
cpu/hotplug: Read_lock(tasklist_lock) doesn't need to disable irqs

check_for_tasks() doesn't need to disable irqs, recursive
read_lock() from interrupt is fine.

While at it, s/do_each_thread/for_each_process_thread/.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Kirill Tkhai <ktkhai@odin.com>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Kirill Tkhai <ktkhai@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150910130750.GA20055@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/cpu.c