rseq: Implement time slice extension mechanism
Status from this message: The following commit has been merged into the sched/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest11 patches 42 repliesApplied
- v511 patches 0 repliesSuperseded
- v412 patches 4 repliesApplied
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 12 patches | 50 replies | Superseded | |
| v2 | 12 patches | 16 replies | Superseded | |
| v1 | 12 patches | 41 replies | Superseded |
Changes in v6 from the cover letter
- Rebase on v6.19-rc1
- Fold typo fixes - Sebastian
- Switch to syscall number 471
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | rseq: Add fields and constants for time slice extensionDocumentation/ Documentation/ include/ +3 more | +220 | 15 replies | |
| 2/11 | rseq: Provide static branch for time slice extensionsDocumentation/ include/ kernel/ | +33 | 0 replies | |
| 3/11 | rseq: Add statistics for time slice extensionsinclude/ kernel/ | +19 | 0 replies | |
| 4/11 | rseq: Add prctl() to enable time slice extensionsinclude/ include/ kernel/ +1 more | +77 | 0 replies | |
| 5/11 | rseq: Implement sys_rseq_slice_yield()arch/ arch/ arch/ +19 more | +46 | 1 reply | |
| 6/11 | rseq: Implement syscall entry work for time slice extensionsinclude/ include/ include/ +2 more | +112 | 3 replies | |
| 7/11 | rseq: Implement time slice extension enforcement timerDocumentation/ include/ include/ +1 more | +167 | 15 replies | |
| 7/11 | rseq: Implement time slice extension enforcement timerDocumentation/ include/ include/ +1 more | +167 | 0 replies | |
| 8/11 | rseq: Reset slice extension when scheduledinclude/ | +28 | 1 reply | |
| 9/11 | rseq: Implement rseq_grant_slice_extension()include/ | +108 | 3 replies | |
| 10/11 | entry: Hook up rseq time slice extensionkernel/ | +12 | 4 replies | |
| 11/11 | selftests/rseq: Implement time slice extension testtools/ tools/ tools/ +1 more | +251 | 0 replies |
Reviews trailers per patch
4 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Arnd Bergmann | Mathieu Desnoyers |
|---|---|---|
| 1/11 | ||
| 2/11 | ||
| 3/11 | ||
| 4/11 | ||
| 5/11 | A-b | R-b |
| 6/11 | ||
| 7/11 | R-b | |
| 7/11 | R-b | |
| 8/11 | R-b | |
| 9/11 | ||
| 10/11 | ||
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch V6 00/11] rseq: Implement time slice extension mechanism
This is a follow up on the V5 version:
https://lore.kernel.org/[email protected]
V1 contains a detailed explanation:
https://lore.kernel.org/[email protected]
TLDR: Time slice extensions are an attempt to provide opportunistic priority ceiling without the overhead of an actual priority ceiling protocol, but also without the guarantees such a protocol provides.
The intent is to avoid situations where a user space thread is interrupted in a critical section and scheduled out, while holding a resource on which the preempting thread or other threads in the system might block on. That obviously prevents those threads from making progress in the worst case for at least a full time slice. Especially in the context of user space spinlocks, which are a patently bad idea to begin with, but that's also true for other mechanisms.
This series uses the existing RSEQ user memory to implement it.
Changes vs. V5:
- Rebase on v6.19-rc1
- Fold typo fixes - Sebastian
- Switch to syscall number 471
The series is based on v6.19-rc1 and is also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rseq/slice
Thanks,
tglx