TencentOS-kernel/kernel/sched
Bin Lai 92e026f5b5 sli: fix rq_clock warning caused by sli
In order to reduce the critical section, we invoke sli_update_tick()
to do sli statistics after release the rq lock. But there is a race
condition that could led the rq_clock warning.

Warning generates like following:
CPU0				CPU1
rq_lock()
update_rq_clock()
rq_unlock()
				rq_lock()
sli_update_tick()		load balance

Although, CPU0 had updated the rq_clock(). But CPU1 may concurrently
do the load balance and acquire CPU0's rq lock, and the CPU0's
clock_update_flags would be cleared. It means that caller should
update the rq clock before actually use it. Unfortunately, CPU0
cann't observed it. So the warning was produced by sli when it
invoke rq_clock().

Therefore, we must move the sli_check_longsys() in the front of
rq_unlock().

Signed-off-by: Bin Lai <robinlai@tencent.com>
2022-07-05 15:19:38 +08:00
..
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
autogroup.c sched: disable sched_auto_group by default 2021-10-29 08:50:28 +00:00
autogroup.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
clock.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
completion.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
core.c sli: fix rq_clock warning caused by sli 2022-07-05 15:19:38 +08:00
cpuacct.c sli: add the CONFIG_CGROUP_SLI configuration for SLI 2022-06-21 10:39:08 +08:00
cpudeadline.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cpudeadline.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cpufreq.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cpufreq_schedutil.c sched/uclamp: Protect uclamp fast path code with static key 2021-03-16 16:34:54 +08:00
cpupri.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cpupri.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cputime.c sli: add the CONFIG_CGROUP_SLI configuration for SLI 2022-06-21 10:39:08 +08:00
deadline.c sched/deadline: Fix sched_dl_global_validate() 2021-03-16 16:42:38 +08:00
debug.c sched/debug: Fix cgroup_path[] serialization 2021-05-20 16:07:54 +08:00
fair.c sli: add the CONFIG_CGROUP_SLI configuration for SLI 2022-06-21 10:39:08 +08:00
features.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
idle.c rcu/nocb: Perform deferred wake up before last idle's need_resched() check 2021-04-12 12:52:37 +08:00
isolation.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
loadavg.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
membarrier.c sched/membarrier: fix missing local execution of ipi_sync_rq_state() 2021-04-12 12:53:11 +08:00
pelt.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pelt.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
psi.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rt.c sched: Defend cfs and rt bandwidth quota against overflow 2021-03-16 16:29:33 +08:00
sched-pelt.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sched.h Add cfs bandwidth burst statistics 2021-12-30 14:50:28 +08:00
stats.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
stats.h sli: add the CONFIG_CGROUP_SLI configuration for SLI 2022-06-21 10:39:08 +08:00
stop_task.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
swait.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
topology.c sched: correct SD_flags returned by tl->sd_flags() 2021-03-16 16:33:12 +08:00
wait.c rq-qos: fix missed wake-ups in rq_qos_throttle try two 2022-04-12 16:54:12 +08:00
wait_bit.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00