From: Oleg Nesterov Date: Mon, 7 Apr 2014 22:38:30 +0000 (-0700) Subject: exit: move check_stack_usage() to the end of do_exit() X-Git-Tag: v3.15-rc1~57^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bcb8232cf4eb061b086c10f56b6808adcdb5a93;p=pandora-kernel.git exit: move check_stack_usage() to the end of do_exit() It is not clear why check_stack_usage() is called so early and thus it never checks the stack usage in, say, exit_notify() or flush_ptrace_hw_breakpoint() or other functions which are only called by do_exit(). Move the callsite down to the last preempt_disable/schedule. Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed