We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f47b18 commit d6b1e91Copy full SHA for d6b1e91
kernel/sched/core.c
@@ -3362,7 +3362,8 @@ static int __sched_setscheduler(struct task_struct *p,
3362
}
3363
3364
/*
3365
- * If not changing anything there's no need to proceed further:
+ * If not changing anything there's no need to proceed further,
3366
+ * but store a possible modification of reset_on_fork.
3367
*/
3368
if (unlikely(policy == p->policy)) {
3369
if (fair_policy(policy) && attr->sched_nice != task_nice(p))
@@ -3372,6 +3373,7 @@ static int __sched_setscheduler(struct task_struct *p,
3372
3373
if (dl_policy(policy))
3374
goto change;
3375
3376
+ p->sched_reset_on_fork = reset_on_fork;
3377
task_rq_unlock(rq, p, &flags);
3378
return 0;
3379
0 commit comments