Re: [PATCH 02/10] sched/fair: Add rate-limiting and validation helpers

From: K Prateek Nayak

Date: Wed Nov 12 2025 - 01:44:51 EST


On 11/12/2025 12:10 PM, K Prateek Nayak wrote:
>> + if (task_rq(p_yielding) != rq || task_rq(p_target) != rq)
>
> yield_to() has already checked for this under double_rq_lock()
> so this too should be unnecessary.

nvm! We only check if the task_rq(p_target) is stable under the
rq_lock or not. Just checking "task_rq(p_target) != rq" should
be sufficient here.

--
Thanks and Regards,
Prateek