lkml.org 
[lkml]   [2011]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 15/16] time: Update tiemkeeper structure using a local shadow
From
Date
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



\
 
 \ /
  Last update: 2011-11-17 23:07    [from the cache]
©2003-2011 Jasper Spaans