On 04/02, Andrii Nakryiko wrote:
>
> --- a/kernel/exit.c
> +++ b/kernel/exit.c
> @@ -937,12 +937,12 @@ void __noreturn do_exit(long code)
>  
>       tsk->exit_code = code;
>       taskstats_exit(tsk, group_dead);
> +     trace_sched_process_exit(tsk, group_dead);
>  
>       exit_mm();
>  
>       if (group_dead)
>               acct_process();
> -     trace_sched_process_exit(tsk);

I see nothing wrong in this change.

(and I think that the current placement of trace_sched_process_exit() was
 more or less "random").

Acked-by: Oleg Nesterov <[email protected]>


Reply via email to