aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorHuaixin Chang <[email protected]>2020-04-20 10:44:21 +0800
committerPeter Zijlstra <[email protected]>2020-04-30 20:14:40 +0200
commit5a6d6a6ccb5f48ca8cf7c6d64ff83fd9c7999390 (patch)
tree1f9d369362c55ed780292d621b35251f2db0cf0d /lib/mpi/mpi-mod.c
parent457d1f465778ccb5f14f7d7a62245e41d12a3804 (diff)
sched/fair: Refill bandwidth before scaling
In order to prevent possible hardlockup of sched_cfs_period_timer() loop, loop count is introduced to denote whether to scale quota and period or not. However, scale is done between forwarding period timer and refilling cfs bandwidth runtime, which means that period timer is forwarded with old "period" while runtime is refilled with scaled "quota". Move do_sched_cfs_period_timer() before scaling to solve this. Fixes: 2e8e19226398 ("sched/fair: Limit sched_cfs_period_timer() loop to avoid hard lockup") Signed-off-by: Huaixin Chang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Ben Segall <[email protected]> Reviewed-by: Phil Auld <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions