Skip to content
Snippets Groups Projects
Commit 8330b6cc authored by FKHals's avatar FKHals
Browse files

Set job child process default scheduler to PB

at fork (and not later on as before) which fixes a bug where child
processes that have been initially run by the CFS would somehow remain
in its queue and would get scheduled even though they are dead which
causes critical errors.
parent a0336fb6
Branches
No related tags found
No related merge requests found
...@@ -2367,6 +2367,12 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p) ...@@ -2367,6 +2367,12 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p)
p->sched_class = &fair_sched_class; p->sched_class = &fair_sched_class;
} }
// schedule a pb process only using the pb-scheduler and thereby avoid that the process is
// inserted into the CFS data structures
if (PB_EXEC_MODE == this_rq()->pb.mode) {
p->sched_class = &pb_sched_class;
}
init_entity_runnable_average(&p->se); init_entity_runnable_average(&p->se);
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment