Commit 30dd3b1
sched_ext: keep running prev when prev->scx.slice != 0
When %SCX_OPS_ENQ_LAST is set and prev->scx.slice != 0,
@Prev will be dispacthed into the local DSQ in put_prev_task_scx().
However, pick_task_scx() is executed before put_prev_task_scx(),
so it will not pick @Prev.
Set %SCX_RQ_BAL_KEEP in balance_one() to ensure that pick_task_scx()
can pick @Prev.
Signed-off-by: Henry Huang <[email protected]>
Acked-by: Andrea Righi <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent ce2b93f commit 30dd3b1
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2747 | 2747 | | |
2748 | 2748 | | |
2749 | 2749 | | |
| 2750 | + | |
2750 | 2751 | | |
2751 | 2752 | | |
2752 | 2753 | | |
| |||
2779 | 2780 | | |
2780 | 2781 | | |
2781 | 2782 | | |
2782 | | - | |
2783 | | - | |
| 2783 | + | |
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
| |||
2813 | 2813 | | |
2814 | 2814 | | |
2815 | 2815 | | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
2816 | 2820 | | |
2817 | 2821 | | |
2818 | 2822 | | |
| |||
2838 | 2842 | | |
2839 | 2843 | | |
2840 | 2844 | | |
2841 | | - | |
2842 | | - | |
| 2845 | + | |
2843 | 2846 | | |
2844 | 2847 | | |
2845 | 2848 | | |
| |||
0 commit comments