diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 20e066065eb3..1664d3f33d38 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2580,12 +2580,12 @@ static int alloc_retstack_tasklist(struct ftrace_ret_stack **ret_stack_list) | |||
2580 | } | 2580 | } |
2581 | 2581 | ||
2582 | if (t->ret_stack == NULL) { | 2582 | if (t->ret_stack == NULL) { |
2583 | t->curr_ret_stack = -1; | ||
2584 | /* Make sure IRQs see the -1 first: */ | ||
2585 | barrier(); | ||
2586 | t->ret_stack = ret_stack_list[start++]; | ||
2587 | atomic_set(&t->tracing_graph_pause, 0); | 2583 | atomic_set(&t->tracing_graph_pause, 0); |
2588 | atomic_set(&t->trace_overrun, 0); | 2584 | atomic_set(&t->trace_overrun, 0); |
2585 | t->curr_ret_stack = -1; | ||
2586 | /* Make sure the tasks see the -1 first: */ | ||
2587 | smp_wmb(); | ||
2588 | t->ret_stack = ret_stack_list[start++]; | ||
2589 | } | 2589 | } |
2590 | } while_each_thread(g, t); | 2590 | } while_each_thread(g, t); |
2591 | 2591 | ||