|
|
@@ -3362,7 +3362,8 @@ recheck:
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * If not changing anything there's no need to proceed further:
|
|
|
+ * If not changing anything there's no need to proceed further,
|
|
|
+ * but store a possible modification of reset_on_fork.
|
|
|
*/
|
|
|
if (unlikely(policy == p->policy)) {
|
|
|
if (fair_policy(policy) && attr->sched_nice != task_nice(p))
|
|
|
@@ -3372,6 +3373,7 @@ recheck:
|
|
|
if (dl_policy(policy))
|
|
|
goto change;
|
|
|
|
|
|
+ p->sched_reset_on_fork = reset_on_fork;
|
|
|
task_rq_unlock(rq, p, &flags);
|
|
|
return 0;
|
|
|
}
|