|
@@ -4767,9 +4767,7 @@ int perf_event_init_task(struct task_struct *child)
|
|
* We dont have to disable NMIs - we are only looking at
|
|
* We dont have to disable NMIs - we are only looking at
|
|
* the list, not manipulating it:
|
|
* the list, not manipulating it:
|
|
*/
|
|
*/
|
|
- list_for_each_entry_rcu(event, &parent_ctx->event_list, event_entry) {
|
|
|
|
- if (event != event->group_leader)
|
|
|
|
- continue;
|
|
|
|
|
|
+ list_for_each_entry(event, &parent_ctx->group_list, group_entry) {
|
|
|
|
|
|
if (!event->attr.inherit) {
|
|
if (!event->attr.inherit) {
|
|
inherited_all = 0;
|
|
inherited_all = 0;
|