x86/stacktrace: Clarify the reliable success paths
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 May 2018 06:47:10 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 21 Jun 2018 14:34:55 +0000 (16:34 +0200)
commit441ccc3580f45340715fd8f5c4db795b06326404
tree6af589acc745b753188ef113c0b11f21da4e0c83
parent17426923b03f098da83b8c1e044934a34959f69b
x86/stacktrace: Clarify the reliable success paths

Make clear which path is for user tasks and for kthreads and idle
tasks. This will allow easier plug-in of the ORC unwinder in the next
patches.

Note that we added a check for unwind error to the top of the loop, so
that an error is returned also for user tasks (the 'goto success' would
skip the check after the loop otherwise).

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/lkml/20180518064713.26440-3-jslaby@suse.cz
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/stacktrace.c