Commit 72d0ad7
sched/fair: Fix CFS bandwidth hrtimer expiry type
The time remaining until expiry of the refresh_timer can be negative.
Casting the type to an unsigned 64-bit value will cause integer
underflow, making the runtime_refresh_within return false instead of
true. These situations are rare, but they do happen.
This does not cause user-facing issues or errors; other than
possibly unthrottling cfs_rq's using runtime from the previous period(s),
making the CFS bandwidth enforcement less strict in those (special)
situations.
Signed-off-by: Odin Ugedal <odin@uged.al>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Ben Segall <bsegall@google.com>
Link: https://lore.kernel.org/r/20210629121452.18429-1-odin@uged.al1 parent ceb6ba4 commit 72d0ad7
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5054 | 5054 | | |
5055 | 5055 | | |
5056 | 5056 | | |
5057 | | - | |
| 5057 | + | |
5058 | 5058 | | |
5059 | 5059 | | |
5060 | 5060 | | |
5061 | 5061 | | |
5062 | 5062 | | |
5063 | 5063 | | |
5064 | 5064 | | |
5065 | | - | |
| 5065 | + | |
5066 | 5066 | | |
5067 | 5067 | | |
5068 | 5068 | | |
| |||
0 commit comments