Skip to contentSkip to conversation

sched/deadline: Move __dl_clear_params out of dl_bw lock

PATCH Applied Shang XiaoJing 3 participants 4 messages Aug 27, 2022 – Sep 2, 2022 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 kernel/sched/deadline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/deadline.c +1 -1
index 58ca9aaa9c44..7b15885c8608 100644
@@ -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;
Signature · 1 line
2.17.1
#2 lore raw
Quoted 3 lines · Daniel Bristot de Oliveira

On 8/27/22 04:09, Shang XiaoJing wrote:

Why are y'all always setting "-next" to the subject?

i heard that "-next" means prefer to merge into linux-next branch first, the subsequent patches from me wont set "-next".

Quoted 7 lines
Quoted 4 lines

As members in sched_dl_entity are independent with dl_bw, move __dl_clear_params out of dl_bw lock.

-- Daniel

Thanks,

Shang XiaoJing

merge bot Applied
#3 lore raw
In reply to Shang XiaoJing
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     33f93525799fa3c841b2ba93a56b2bb32ab11dc9
Gitweb:        https://git.kernel.org/tip/33f93525799fa3c841b2ba93a56b2bb32ab11dc9
Author:        Shang XiaoJing <[email protected]>
AuthorDate:    Sat, 27 Aug 2022 10:09:11 +08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Thu, 01 Sep 2022 11:19:55 +02:00

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.

---
 kernel/sched/deadline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/deadline.c +1 -1
index 3bf4b12..d0fe6a2 100644
@@ -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;