Skip to content

posix-cpu-timers: Bunch of fixes

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6posix-cpu-timers: Fix rearm racing against process tickkernel/time/posix-cpu-timers.c+5 -53 replies
2/6posix-cpu-timers: Don't start process wide cputime counter if timer is disabledkernel/time/posix-cpu-timers.c+8 -36 replies
3/6posix-cpu-timers: Force next_expiration recalc after timer deletioninclude/linux/posix-timers.h kernel/time/posix-cpu-timers.c+31 -21 reply
4/6posix-cpu-timers: Force next_expiration recalc after timer resetkernel/time/posix-cpu-timers.c+13 -73 replies
5/6posix-cpu-timers: Force next expiration recalc after early timer firinginclude/linux/posix-timers.h kernel/time/posix-cpu-timers.c+43 -154 replies
6/6posix-cpu-timers: Force next expiration recalc after itimer resetkernel/time/posix-cpu-timers.c+0 -20 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchPeter Zijlstra (Intel)
1/6A-b
2/6
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] posix-cpu-timers: Bunch of fixes

The first is a race due to locklessly starting process wide cputime counting.

The others stop the process wide cputime counting and tick dependency when they are not necessary anymore.

Note I don't really like patch 5/6 and in fact I hope we could manage to remove this early inline cpu_timer_fire() call from timer_settime(). All we get from it is headaches. Besides, the handler isn't invoked from the actual target and that doesn't sound ideal.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
timers/urgent

HEAD: f8f908c9d2b2f1e100cd549206c95a4e65e5f023

Thanks,
Frederic
---

Frederic Weisbecker (6):
posix-cpu-timers: Fix rearm racing against process tick
posix-cpu-timers: Don't start process wide cputime counter if timer is disabled
posix-cpu-timers: Force next_expiration recalc after timer deletion
posix-cpu-timers: Force next_expiration recalc after timer reset
posix-cpu-timers: Force next expiration recalc after early timer firing
posix-cpu-timers: Force next expiration recalc after itimer reset

 include/linux/posix-timers.h   | 11 ++++-
 kernel/time/posix-cpu-timers.c | 97 +++++++++++++++++++++++++++++++++---------
 2 files changed, 87 insertions(+), 21 deletions(-)