[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/5 gnumach] sched_prim.c: Lock thread when calling thread_se
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 4/5 gnumach] sched_prim.c: Lock thread when calling thread_setrun |
Date: |
Tue, 22 Aug 2023 23:55:08 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Applied, thanks!
Damien Zammit, le mer. 16 août 2023 01:49:24 +0000, a ecrit:
> ---
> kern/sched_prim.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kern/sched_prim.c b/kern/sched_prim.c
> index 5def77d4..bc7befe8 100644
> --- a/kern/sched_prim.c
> +++ b/kern/sched_prim.c
> @@ -1793,7 +1793,9 @@ retry:
> */
> if ((new_thread = (thread_t)*threadp)!= THREAD_NULL) {
> *threadp = (volatile thread_t) THREAD_NULL;
> + thread_lock(new_thread);
> thread_setrun(new_thread, FALSE);
> + thread_unlock(new_thread);
> }
>
> counter(c_idle_thread_block++);
> --
> 2.40.1
>
>
>
--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
- [PATCH 0/5 gnumach] Scheduler fixes, Damien Zammit, 2023/08/15
- [PATCH 2/5 gnumach] sched_prim.c: Set quantum based on priority policy (not minimum), Damien Zammit, 2023/08/15
- [PATCH 1/5 gnumach] sched_prim.c: Split bound processor case into two, Damien Zammit, 2023/08/15
- [PATCH 3/5 gnumach] sched_prim.c: Add missing MACH_HOST pset conditionals, Damien Zammit, 2023/08/15
- [PATCH 4/5 gnumach] sched_prim.c: Lock thread when calling thread_setrun, Damien Zammit, 2023/08/15
- Re: [PATCH 4/5 gnumach] sched_prim.c: Lock thread when calling thread_setrun,
Samuel Thibault <=
- [PATCH 5/5 gnumach] sched_prim.c: Check all run queues not just master processor, Damien Zammit, 2023/08/15