|
@@ -4596,6 +4596,7 @@ void perf_event_comm(struct task_struct *task)
|
|
|
struct perf_event_context *ctx;
|
|
|
int ctxn;
|
|
|
|
|
|
+ rcu_read_lock();
|
|
|
for_each_task_context_nr(ctxn) {
|
|
|
ctx = task->perf_event_ctxp[ctxn];
|
|
|
if (!ctx)
|
|
@@ -4603,6 +4604,7 @@ void perf_event_comm(struct task_struct *task)
|
|
|
|
|
|
perf_event_enable_on_exec(ctx);
|
|
|
}
|
|
|
+ rcu_read_unlock();
|
|
|
|
|
|
if (!atomic_read(&nr_comm_events))
|
|
|
return;
|