Commit a53ce18
sched/fair: Sanitize vruntime of entity being migrated
Commit 829c165 ("sched/fair: sanitize vruntime of entity being placed")
fixes an overflowing bug, but ignore a case that se->exec_start is reset
after a migration.
For fixing this case, we delay the reset of se->exec_start after
placing the entity which se->exec_start to detect long sleeping task.
In order to take into account a possible divergence between the clock_task
of 2 rqs, we increase the threshold to around 104 days.
Fixes: 829c165 ("sched/fair: sanitize vruntime of entity being placed")
Originally-by: Zhang Qiao <zhangqiao22@huawei.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Zhang Qiao <zhangqiao22@huawei.com>
Link: https://lore.kernel.org/r/20230317160810.107988-1-vincent.guittot@linaro.org1 parent e8d018d commit a53ce18
2 files changed
Lines changed: 47 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
2087 | 2090 | | |
2088 | 2091 | | |
2089 | 2092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4648 | 4648 | | |
4649 | 4649 | | |
4650 | 4650 | | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
4651 | 4674 | | |
4652 | 4675 | | |
4653 | 4676 | | |
4654 | 4677 | | |
4655 | | - | |
4656 | 4678 | | |
4657 | 4679 | | |
4658 | 4680 | | |
| |||
4684 | 4706 | | |
4685 | 4707 | | |
4686 | 4708 | | |
4687 | | - | |
4688 | | - | |
4689 | | - | |
4690 | | - | |
4691 | | - | |
4692 | | - | |
4693 | | - | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
4694 | 4727 | | |
4695 | 4728 | | |
4696 | 4729 | | |
| |||
4770 | 4803 | | |
4771 | 4804 | | |
4772 | 4805 | | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
4773 | 4809 | | |
4774 | 4810 | | |
4775 | 4811 | | |
| |||
7657 | 7693 | | |
7658 | 7694 | | |
7659 | 7695 | | |
7660 | | - | |
7661 | | - | |
7662 | | - | |
7663 | 7696 | | |
7664 | 7697 | | |
7665 | 7698 | | |
| |||
0 commit comments