File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9391,11 +9391,15 @@ int can_migrate_task(struct task_struct *p, struct lb_env *env)
9391
9391
9392
9392
/*
9393
9393
* We do not migrate tasks that are:
9394
- * 1) throttled_lb_pair, or
9395
- * 2) cannot be migrated to this CPU due to cpus_ptr, or
9396
- * 3) running (obviously), or
9397
- * 4) are cache-hot on their current CPU.
9394
+ * 1) delayed dequeued unless we migrate load, or
9395
+ * 2) throttled_lb_pair, or
9396
+ * 3) cannot be migrated to this CPU due to cpus_ptr, or
9397
+ * 4) running (obviously), or
9398
+ * 5) are cache-hot on their current CPU.
9398
9399
*/
9400
+ if ((p -> se .sched_delayed ) && (env -> migration_type != migrate_load ))
9401
+ return 0 ;
9402
+
9399
9403
if (throttled_lb_pair (task_group (p ), env -> src_cpu , env -> dst_cpu ))
9400
9404
return 0 ;
9401
9405
You can’t perform that action at this time.
0 commit comments