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

Kirill Tkhai ktkhai at virtuozzo.com
Mon Apr 17 08:40:15 PDT 2017


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 at virtuozzo.com>
---
 kernel/sched/fair.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {



More information about the Devel mailing list