Re: [PATCH] time: Add locking to xtime access in get_seconds()

From: Eric Dumazet
Date: Thu May 05 2011 - 02:50:41 EST


Le mercredi 04 mai 2011 Ã 23:21 -0700, john stultz a Ãcrit :

> Would a comment to the effect of "ensure processors don't re-order calls
> to get_seconds" help, or is it still too opaque (or even still
> nonsense?).
>

Where is corresponding smp_wmb() ? It's not obvious, so you must add a
comment to help reader of this code.



--
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/