|
@@ -2375,7 +2375,7 @@ static void perf_event_context_sched_out(struct task_struct *task, int ctxn,
|
|
next_parent = rcu_dereference(next_ctx->parent_ctx);
|
|
next_parent = rcu_dereference(next_ctx->parent_ctx);
|
|
|
|
|
|
/* If neither context have a parent context; they cannot be clones. */
|
|
/* If neither context have a parent context; they cannot be clones. */
|
|
- if (!parent || !next_parent)
|
|
|
|
|
|
+ if (!parent && !next_parent)
|
|
goto unlock;
|
|
goto unlock;
|
|
|
|
|
|
if (next_parent == ctx || next_ctx == parent || next_parent == parent) {
|
|
if (next_parent == ctx || next_ctx == parent || next_parent == parent) {
|