Re: [patch V6 05/11] rseq: Implement sys_rseq_slice_yield()
From: Mathieu Desnoyers
Date: Tue Dec 16 2025 - 11:00:03 EST
On 2025-12-15 13:24, Thomas Gleixner wrote:
Provide a new syscall which has the only purpose to yield the CPU after the
kernel granted a time slice extension.
sched_yield() is not suitable for that because it unconditionally
schedules, but the end of the time slice extension is not required to
schedule when the task was already preempted. This also allows to have a
strict check for termination to catch user space invoking random syscalls
including sched_yield() from a time slice extension region.
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com