Re: [PATCH] perf: Explain perf_sched_mutex

2017-08-29 Thread Alexander Shishkin
Alexander Shishkin writes: > To clarify why atomic_inc_return(&perf_sched_events) is not sufficient and > a mutex is needed to order static branch enabling vs the atomic counter > increment, this adds a comment with an short explanation. "with a short explanation", sigh > > Signed-off-by: Alexa

[PATCH] perf: Explain perf_sched_mutex

2017-08-29 Thread Alexander Shishkin
To clarify why atomic_inc_return(&perf_sched_events) is not sufficient and a mutex is needed to order static branch enabling vs the atomic counter increment, this adds a comment with an short explanation. Signed-off-by: Alexander Shishkin --- kernel/events/core.c | 5 + 1 file changed, 5 ins