diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-11-15 20:33:20 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-11-23 09:48:18 +0100 |
commit | 958c5f848e17e216df138cc2161b07b7120e2d15 (patch) | |
tree | 7a91e770f30b3cec6baf90b4422e09526e438943 /include/asm-generic/ptrace.h | |
parent | 1b034bd989aa4a396c13d305759c376c52595a97 (diff) | |
download | linux-958c5f848e17e216df138cc2161b07b7120e2d15.tar.gz linux-958c5f848e17e216df138cc2161b07b7120e2d15.tar.bz2 linux-958c5f848e17e216df138cc2161b07b7120e2d15.zip |
stop_machine: Change stop_one_cpu() to rely on cpu_stop_queue_work()
Change stop_one_cpu() to return -ENOENT if cpu_stop_queue_work() fails.
Otherwise we know that ->executed must be true after wait_for_completion()
so we can just return done.ret.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Milos Vyletel <milos@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20151115193320.GA8259@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic/ptrace.h')
0 files changed, 0 insertions, 0 deletions