[Devel] Revert "sched/fair: Fix ENQUEUE_WAKEUP false appearance in enqueue_task_fair()"

Submitted by Kirill Tkhai on April 17, 2017, 3:40 p.m.

Details

Message ID 149244355525.3320.5981277427187701503.stgit@localhost.localdomain
State New
Series "Revert "sched/fair: Fix ENQUEUE_WAKEUP false appearance in enqueue_task_fair()""
Headers show

Commit Message

Kirill Tkhai April 17, 2017, 3:40 p.m.
This reverts commit 5c55133e47d0fc6cca3ccc26e7067593025ca129.

It came from mainstream and it's need for correct placing
parent cfs_rq on a task wakeup. Must not touch that, because
it introduces imbalance.

https://jira.sw.ru/browse/PSBM-64576

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 kernel/sched/fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 6de2bc3e4b5..35562e2b576 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -4291,7 +4291,7 @@  enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
 		if (boost)
 			boost = enqueue_boosted_entity(cfs_rq, se);
 
-		flags &= ~ENQUEUE_BOOST;
+		flags = ENQUEUE_WAKEUP;
 	}
 
 	for_each_sched_entity(se) {