(hr)timers: Prepare for PREEMPT_RT support
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
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | hrtimer: Remove task argument from hrtimer_init_sleeper()block/ drivers/ include/ +4 more | +10 | 2 replies | |
| 2/12 | hrtimer: Consolidate hrtimer_init() + hrtimer_init_sleeper() callsblock/ drivers/ include/ +4 more | +55 | 0 replies | |
| 3/12 | hrtimer: Introduce HARD expiry modeinclude/ | +6 | 0 replies | |
| 4/12 | sched: Mark hrtimers to expire in hard interrupt contextkernel/ kernel/ kernel/ +1 more | +8 | 0 replies | |
| 5/12 | perf/core: Mark hrtimers to expire in hard interrupt contextkernel/ | +2 | 0 replies | |
| 6/12 | watchdog: Mark watchdog_hrtimer to expire in hard interrupt contextkernel/ | +1 | 0 replies | |
| 7/12 | KVM: LAPIC: Mark hrtimer to expire in hard interrupt contextarch/ | +1 | 1 reply | |
| 8/12 | tick: Mark tick related hrtimers to expiry in hard interrupt contextkernel/ kernel/ | +2 | 0 replies | |
| 9/12 | hrtimer: Move unmarked hrtimers to soft interrupt expiry on RTkernel/ | +10 | 0 replies | |
| 10/12 | hrtimer: Determine hard/soft expiry mode for hrtimer sleepers on RTkernel/ | +24 | 6 replies | |
| 11/12 | hrtimer: Prepare support for PREEMPT_RTinclude/ kernel/ | +98 | 5 replies | |
| 12/12 | timers: Prepare support for PREEMPT_RTinclude/ kernel/ | +96 | 0 replies |
Reviews trailers per patch
3 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Paolo Bonzini | Steven Rostedt (VMware) | Peter Zijlstra (Intel) |
|---|---|---|---|
| Series | A-b | ||
| 1/12 | R-b | ||
| 2/12 | |||
| 3/12 | |||
| 4/12 | |||
| 5/12 | |||
| 6/12 | |||
| 7/12 | A-b | ||
| 8/12 | |||
| 9/12 | |||
| 10/12 | R-b | ||
| 11/12 | |||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [patch 00/12] (hr)timers: Prepare for PREEMPT_RT support
The following series brings the bulk of PREEMPT_RT specific changes for the (hr)timer code:
- Handle timer deletion correctly under RT to avoid priority inversion and life locks
This mechanism might be useful for VMs as well when a vCPU executing a timer callback gets scheduled out and on another vCPU del_timer_sync() or hrtimer_cancel() is invoked.
The mitigation would only work when paravirt spinlocks are enabled. I've not implemented that, as I don't know whether this is a real world issue. I just noticed that it is basically the same problem. Adding it would be trivial.
- Prepare for moving most hrtimer callbacks into softirq context and mark timers which need to expire in hard interrupt context even on RT so they don't get moved.
The timerwheel still needs some special handling for IRQSAFE timers (grrrr) which I'm still working on to find a less fugly solution.
Thanks,
tglx