Skip to content

RFC Alarmtimer fixes (hopefully 3.7 material)

John Stultz lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3alarmtimer: Use hrtimer per-alarm instead of per-baseinclude/linux/alarmtimer.h kernel/time/alarmtimer.c+28 -680 replies
2/3alarmtimer: Remove unused helpers & definesinclude/linux/alarmtimer.h+0 -280 replies
3/3alarmtimer: Rename alarmtimer_remove to alarmtimer_dequeuekernel/time/alarmtimer.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

Cc Arve Hjønnevåg <[email protected]>
Cc Colin Cross <[email protected]>
Cc Thomas Gleixner <[email protected]>

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