Commit 1de59c7c authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

copperplate/timerobj: fix start/start, start/stop races

Concurrent timer start vs start, or start vs stop operations may end
up confusing the logic, like:

- a periodic timer being reinserted into the dispatch queue while

- dirty reads of inconsistent ( date, interval, handler ) triplets by
  the dispatch loop, as the timer properties are being updated

Fix this by moving all updates to the timer properties under the
protection of the dispatch lock (svlock), likewise for loads.

Issue reported by Ronny Meeus, with a preliminary fix: Philippe Gerum's avatarPhilippe Gerum <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 24592c28
Pipeline #5603 failed with stage
in 15 minutes and 58 seconds