The following commit has been merged into the sched/core branch of tip: Commit-ID: cdb310474dece99985e4cdd2b96b1324e39c1c9d Gitweb: https://git.kernel.org/tip/cdb310474dece99985e4cdd2b96b1324e39c1c9d Author: Hui Su <sh_def@xxxxxxx> AuthorDate: Fri, 30 Oct 2020 22:46:21 +08:00 Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx> CommitterDate: Tue, 10 Nov 2020 18:39:05 +01:00 sched/fair: Remove superfluous lock section in do_sched_cfs_slack_timer() Since ab93a4bc955b ("sched/fair: Remove distribute_running fromCFS bandwidth"), there is nothing to protect between raw_spin_lock_irqsave/store() in do_sched_cfs_slack_timer(). Signed-off-by: Hui Su <sh_def@xxxxxxx> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> Reviewed-by: Phil Auld <pauld@xxxxxxxxxx> Reviewed-by: Ben Segall <bsegall@xxxxxxxxxx> Link: https://lkml.kernel.org/r/20201030144621.GA96974@rlk --- kernel/sched/fair.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 2755a7e..3e5d98f 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -5126,9 +5126,6 @@ static void do_sched_cfs_slack_timer(struct cfs_bandwidth *cfs_b) return; distribute_cfs_runtime(cfs_b); - - raw_spin_lock_irqsave(&cfs_b->lock, flags); - raw_spin_unlock_irqrestore(&cfs_b->lock, flags); } /*
![]() |