Re: [PATCH 15/16] time: Update tiemkeeper structure using a localshadow

From: John Stultz
Date: Thu Nov 17 2011 - 17:05:35 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/