RFC Alarmtimer fixes (hopefully 3.7 material)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | alarmtimer: Use hrtimer per-alarm instead of per-baseinclude/ kernel/ | +28 | 0 replies | |
| 2/3 | alarmtimer: Remove unused helpers & definesinclude/ | +0 | 0 replies | |
| 3/3 | alarmtimer: Rename alarmtimer_remove to alarmtimer_dequeuekernel/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3][RFC] Alarmtimer fixes (hopefully 3.7 material)
Arve Hjønnevåg reported numerous crashes from the "BUG_ON(timer->state != HRTIMER_STATE_CALLBACK)" check in __run_hrtimer after it called alarmtimer_fired.
Looking at the code, I realized much of the logic duplicated the hrtimer code, and that by multiplexing numerous alarmtimers onto a single hrtimer didn't really gain us anything over just using an hrtimer per alarmtimer. Especially given the various ways hrtimer actions can fail.
So this patchset tries to simplify some of the alarmtimer code by utilizing the hrtimer logic in a more direct manner. Followed then by a few cleanup patches.
I've done some brief testing with some simpler test cases, but I'd appreciate any additional testing or review.
I'm hoping to resubmit this so it can go in for 3.7.
thanks
-john
John Stultz (3):
alarmtimer: Use hrtimer per-alarm instead of per-base
alarmtimer: Remove unused helpers & defines
alarmtimer: Rename alarmtimer_remove to alarmtimer_dequeue
include/linux/alarmtimer.h | 31 +------------- kernel/time/alarmtimer.c | 99 +++++++++++++------------------------------- 2 files changed, 31 insertions(+), 99 deletions(-)
Signature · 1 line
1.7.9.5