posix-timers: Rework the global hash table and provide a sane mechanism for CRIU
Status from this message: The following commit has been merged into the timers/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest18 patches 28 repliesApplied
- v217 patches 24 repliesSuperseded
- v111 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- Ensure consistency on timer_create() (new patch) - Frederic
- Pick up the lock_timer() conditional unlock fix (was V2a)
- Use proper defines in selftests
- Pick up review/ack tags
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | posix-timers: Ensure that timer initialization is fully visiblekernel/ | +14 | 1 reply | |
| 2/18 | posix-timers: Initialise timer before adding it to the hash tablekernel/ | +42 | 2 replies | |
| 3/18 | posix-timers: Add cond_resched() to posix_timer_add() search loopkernel/ | +1 | 0 replies | |
| 4/18 | posix-timers: Cleanup includeskernel/ | +10 | 0 replies | |
| 5/18 | posix-timers: Remove a few paranoid warningskernel/ | +8 | 0 replies | |
| 6/18 | posix-timers: Remove SLAB_PANIC from kmem cachekernel/ | +7 | 0 replies | |
| 7/18 | posix-timers: Use guards in a few placeskernel/ | +30 | 0 replies | |
| 8/18 | posix-timers: Simplify lock/unlock_timer()kernel/ | +29 | 0 replies | |
| 9/18 | posix-timers: Rework timer removalinclude/ kernel/ kernel/ | +90 | 2 replies | |
| 9/18 | posix-timers: Rework timer removalinclude/ kernel/ kernel/ | +90 | 0 replies | |
| 10/18 | posix-timers: Make lock_timer() use guard()include/ kernel/ | +51 | 3 replies | |
| 11/18 | posix-timers: Make signal_struct:: Next_posix_timer_id an atomic_tinclude/ kernel/ | +6 | 2 replies | |
| 12/18 | posix-timers: Improve hash table performancekernel/ | +68 | 1 reply | |
| 13/18 | posix-timers: Switch to jhash32()kernel/ | +5 | 0 replies | |
| 14/18 | posix-timers: Avoid false cacheline sharinginclude/ kernel/ | +14 | 3 replies | |
| 15/18 | posix-timers: Make per process list RCU safekernel/ | +2 | 1 reply | |
| 16/18 | posix-timers: Dont iterate /proc/$PID/timers with sighand:: Siglock heldfs/ | +20 | 2 replies | |
| 17/18 | posix-timers: Provide a mechanism to allocate a given timer IDinclude/ include/ include/ +2 more | +89 | 4 replies | |
| 17/18 | posix-timers: Provide a mechanism to allocate a given timer IDinclude/ include/ include/ +2 more | +91 | 6 replies | |
| 18/18 | selftests/timers/posix-timers: Add a test for exact allocation modetools/ | +65 | 0 replies | |
| 18/18 | selftests/timers/posix-timers: Add a test for exact allocation modetools/ | +65 | 1 reply |
Reviews trailers per patch
20 of 21 patches have a Reviewed-by or Acked-by.
| Patch | Frederic Weisbecker | Cyrill Gorcunov |
|---|---|---|
| 1/18 | R-b | |
| 2/18 | R-b | |
| 3/18 | R-b | |
| 4/18 | A-b | |
| 5/18 | R-b | |
| 6/18 | R-b | |
| 7/18 | R-b | |
| 8/18 | R-b | |
| 9/18 | R-b R-b | |
| 9/18 | R-b R-b | |
| 10/18 | A-b | |
| 11/18 | R-b A-b | |
| 12/18 | A-b | |
| 13/18 | ||
| 14/18 | R-b | |
| 15/18 | R-b | |
| 16/18 | R-b | |
| 17/18 | R-b | R-b T-b |
| 17/18 | R-b | R-b T-b |
| 18/18 | R-b | |
| 18/18 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch V3 00/18] posix-timers: Rework the global hash table and provide a sane mechanism for CRIU
This is a follow up on V2 of this work, which can be found here:
https://lore.kernel.org/all/[email protected]
It addresses the scalability problem of the posix timer hash and provides a performant mechanism to restore Posix timers with a given ID along with a couple of preperatory cleanups and enhancements. More details about implementation choices are in the change logs and the cover letter of V1:
https://lore.kernel.org/all/[email protected]
Changes vs. V2:
- Ensure consistency on timer_create() (new patch) - Frederic
- Pick up the lock_timer() conditional unlock fix (was V2a)
- Use proper defines in selftests
- Pick up review/ack tags
The series survives all posix timer tests and did not show any regressions so far.
The series is based on:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip timers/core
and is also available from git:
git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/posix
Thanks,
tglx
---
Eric Dumazet (3):
posix-timers: Initialise timer before adding it to the hash table
posix-timers: Add cond_resched() to posix_timer_add() search loop
posix-timers: Make signal_struct:: Next_posix_timer_id an atomic_t
Peter Zijlstra (1):
posix-timers: Make lock_timer() use guard()
Thomas Gleixner (14):
posix-timers: Ensure that timer initialization is fully visible
posix-timers: Cleanup includes
posix-timers: Remove a few paranoid warnings
posix-timers: Remove SLAB_PANIC from kmem cache
posix-timers: Use guards in a few places
posix-timers: Simplify lock/unlock_timer()
posix-timers: Rework timer removal
posix-timers: Improve hash table performance
posix-timers: Switch to jhash32()
posix-timers: Avoid false cacheline sharing
posix-timers: Make per process list RCU safe
posix-timers: Dont iterate /proc/$PID/timers with sighand:: Siglock held
posix-timers: Provide a mechanism to allocate a given timer ID selftests/timers/posix-timers: Add a test for exact allocation mode
fs/proc/base.c | 48 -- include/linux/cleanup.h | 22 - include/linux/posix-timers.h | 30 + include/linux/sched/signal.h | 3 include/uapi/linux/prctl.h | 10 kernel/signal.c | 2 kernel/sys.c | 5 kernel/time/posix-timers.c | 540 +++++++++++++------------- tools/testing/selftests/timers/posix_timers.c | 66 +++ 9 files changed, 418 insertions(+), 308 deletions(-)