Messages in this thread | | | Subject | Re: [PATCH 15/16] time: Update tiemkeeper structure using a local shadow | From | John Stultz <> | Date | Thu, 17 Nov 2011 14:03:22 -0800 |
| |
On Mon, 2011-11-14 at 20:04 -0800, John Stultz wrote: > Uses a local shadow structure to update the timekeeper. This > reduces the timekeeper.lock hold time. > > WARNING: This introduces a race, but the window might be provably > so small as to not be observable. This patch needs lots more math > and comments to validate that assumption.
Bah. After thinking about it, this patch won't work, since it would possibly lose updates via settimeofday(), etc.
So I'm coming around to Thomas' double lock reader-seq/writer-lock method.
thanks -john
| |