aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched/fair.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 8e42de9105f8..84adb2d66cbd 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3130,8 +3130,10 @@ task_hot(struct task_struct *p, u64 now, struct sched_domain *sd)
3130} 3130}
3131 3131
3132#define LBF_ALL_PINNED 0x01 3132#define LBF_ALL_PINNED 0x01
3133#define LBF_NEED_BREAK 0x02 3133#define LBF_NEED_BREAK 0x02 /* clears into HAD_BREAK */
3134#define LBF_ABORT 0x04 3134#define LBF_HAD_BREAK 0x04
3135#define LBF_HAD_BREAKS 0x0C /* count HAD_BREAKs overflows into ABORT */
3136#define LBF_ABORT 0x10
3135 3137
3136/* 3138/*
3137 * can_migrate_task - may task p from runqueue rq be migrated to this_cpu? 3139 * can_migrate_task - may task p from runqueue rq be migrated to this_cpu?
@@ -4508,7 +4510,9 @@ redo:
4508 goto out_balanced; 4510 goto out_balanced;
4509 4511
4510 if (lb_flags & LBF_NEED_BREAK) { 4512 if (lb_flags & LBF_NEED_BREAK) {
4511 lb_flags &= ~LBF_NEED_BREAK; 4513 lb_flags += LBF_HAD_BREAK - LBF_NEED_BREAK;
4514 if (lb_flags & LBF_ABORT)
4515 goto out_balanced;
4512 goto redo; 4516 goto redo;
4513 } 4517 }
4514 4518