Re: [patch V6 07/11] rseq: Implement time slice extension enforcement timer

From: Prakash Sangappa
Date: Tue Dec 16 2025 - 12:56:02 EST




> On Dec 15, 2025, at 11:18 PM, Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> Ouch. Would you mind rearranging parts of the first sentence?
>
> On 12/15/25 10:24 AM, Thomas Gleixner wrote:
>> --- a/Documentation/admin-guide/sysctl/kernel.rst
>> +++ b/Documentation/admin-guide/sysctl/kernel.rst
>> @@ -1228,6 +1228,14 @@ reboot-cmd (SPARC only)
>> ROM/Flash boot loader. Maybe to tell it what to do after
>> rebooting. ???
>>
>> +rseq_slice_extension_nsec
>> +=========================
>> +
>> +A task can request to delay its scheduling if it is in a critical section
>> +via the prctl(PR_RSEQ_SLICE_EXTENSION_SET) mechanism. This sets the maximum
>> +allowed extension in nanoseconds before scheduling of the task is enforced.
>> +Default value is 30000ns (30us). The possible range is 10000ns (10us) to
>> +50000ns (50us).
>
> Maybe
> A task that is in a critical section can request to delay its scheduling via
> the prctl(PR_RSEQ_SLICE_EXTENSION_SET) mechanism.
>

Well, this prctl call is to enable the time slice extension mechanism for the thread.
Actually requesting to delay scheduling(time slice extension) is done
by updating a member in rseq structure. Perhaps this needs to be clarified.

-Prakash

> --
> ~Randy
>