Re: [RESEND][PATCH v31 1/9] sched/deadline: Ignore proxy-exec sched_yield()
From: K Prateek Nayak
Date: Tue Aug 11 2026 - 02:12:42 EST
On 8/11/2026 9:25 AM, K Prateek Nayak wrote:
> P.S. I dropped this patch and added the following on top of this
> series on top of tip:sched/core and nothing has crashed (yet):
>
> diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
> index a3003b0f4522..797cb316fcd1 100644
> --- a/kernel/sched/deadline.c
> +++ b/kernel/sched/deadline.c
> @@ -101,7 +101,11 @@ static inline struct sched_dl_entity *pi_of(struct sched_dl_entity *dl_se)
>
> static inline bool is_dl_boosted(struct sched_dl_entity *dl_se)
> {
> - return false;
> + struct dl_rq *dl_rq = dl_rq_of_se(dl_se);
> + struct rq *rq = rq_of_dl_rq(dl_rq);
> +
> + return sched_proxy_exec() && rq->donor != rq->curr && dl_task_of(dl_se) == rq->donor;
> +
> }
> #endif /* !CONFIG_RT_MUTEXES */
>
> ---
Nevermind, I had CONFIG_RT_MUTEXES enabled and on doing:
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 97d6dc039e9b..909174e332ca 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -94,7 +94,7 @@ static inline bool is_dl_boosted(struct sched_dl_entity *dl_se)
struct dl_rq *dl_rq = dl_rq_of_se(dl_se);
struct rq *rq = rq_of_dl_rq(dl_rq);
- return (pi_of(dl_se) != dl_se) || (sched_proxy_exec() && rq->donor != rq->curr && dl_task_of(dl_se) == rq->donor);
+ return (pi_of(dl_se) != dl_se) || (sched_proxy_exec() && rq->donor != rq->curr);
}
#else /* !CONFIG_RT_MUTEXES: */
static inline struct sched_dl_entity *pi_of(struct sched_dl_entity *dl_se)
@@ -107,7 +107,7 @@ static inline bool is_dl_boosted(struct sched_dl_entity *dl_se)
struct dl_rq *dl_rq = dl_rq_of_se(dl_se);
struct rq *rq = rq_of_dl_rq(dl_rq);
- return sched_proxy_exec() && rq->donor != rq->curr && dl_task_of(dl_se) == rq->donor;
+ return sched_proxy_exec() && rq->donor != rq->curr;
}
#endif /* !CONFIG_RT_MUTEXES */
---
I see only a bunch of SCHED_OTHER tasks proxying so clearly that doesn't
work but I think proxy should do something similar how rt_mutex handle
this under PI.
--
Thanks and Regards,
Prateek