sched: Wrap rq::lock access
mainline inclusion from mainline-v5.14-rc1 commit 5cb9eaa3 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5OOWG CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5cb9eaa3d274f75539077a28cf01e3563195fa53 -------------------------------------------------------------------------- In preparation of playing games with rq->lock, abstract the thing using an accessor. Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org> Tested-by: NDon Hiatt <dhiatt@digitalocean.com> Tested-by: NHongyu Ning <hongyu.ning@linux.intel.com> Tested-by: NVincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/20210422123308.136465446@infradead.org Conflicts: kernel/sched/core.c [Bugfix a7c81556("sched: Fix migrate_disable() vs rt/dl balancing") is not applied. Bugfix 565790d2("sched: Fix balance_callback()") is not applied. Bugfix ae792702("sched: Optimize finish_lock_switch()") is not applied. Bugfix 36c6e17b("sched/core: Print out straggler tasks in sched_cpu_dying()") is not applied. Feature 2558aacf("sched/hotplug: Ensure only per-cpu kthreads run during hotplug") is not applied. Feature f2469a1f("sched/core: Wait for tasks being pushed away on hotplug") is not applied.] kernel/sched/deadline.c [Bugfix a7c81556("sched: Fix migrate_disable() vs rt/dl balancing") is not applied.] kernel/sched/fair.c [Feature acf66d70("sched/fair: Provide can_migrate_task_llc") Feature 0826530d("sched/fair: Remove update of blocked load from newidle_balance") s not applied. Feature 6864cf01("sched/fair: Steal work from an overloaded CPU when CPU goes idle")] kernel/sched/rt.c [Bugfix a7c81556("sched: Fix migrate_disable() vs rt/dl balancing") is not applied.] kernel/sched/sched.h [[Bugfix a7c81556("sched: Fix migrate_disable() vs rt/dl balancing") is not applied.] Signed-off-by: NLin Shengwang <linshengwang1@huawei.com> Reviewed-by: Nlihua <hucool.lihua@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录