summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShang XiaoJing <shangxiaojing@huawei.com>2022-08-27 10:09:11 +0800
committerPeter Zijlstra <peterz@infradead.org>2022-09-01 11:19:55 +0200
commit33f93525799fa3c841b2ba93a56b2bb32ab11dc9 (patch)
treeba9206ec64b52f2b9015b9e85c457d10b842ef02
parent96458e7f7dc5ad14bd7577cbf1638e1504ad79dd (diff)
downloadlinux-stable-33f93525799fa3c841b2ba93a56b2bb32ab11dc9.tar.gz
linux-stable-33f93525799fa3c841b2ba93a56b2bb32ab11dc9.tar.bz2
linux-stable-33f93525799fa3c841b2ba93a56b2bb32ab11dc9.zip
sched/deadline: Move __dl_clear_params out of dl_bw lock
As members in sched_dl_entity are independent with dl_bw, move __dl_clear_params out of dl_bw lock. Signed-off-by: Shang XiaoJing <shangxiaojing@huawei.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Daniel Bristot de Oliveira <bristot@kernel.org> Link: https://lore.kernel.org/r/20220827020911.30641-1-shangxiaojing@huawei.com
-rw-r--r--kernel/sched/deadline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 3bf4b12ec5b7..d0fe6a20a9c9 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -431,8 +431,8 @@ static void task_non_contending(struct task_struct *p)
sub_rq_bw(&p->dl, &rq->dl);
raw_spin_lock(&dl_b->lock);
__dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p)));
- __dl_clear_params(p);
raw_spin_unlock(&dl_b->lock);
+ __dl_clear_params(p);
}
return;