On Tue, 24 Aug 2010 13:07:55 -0500
Steve French <[email protected]> wrote:

> Any pointers to background on gettimeofday vs
> clock_gettime(CLOCK_MONOTONIC) and why the latter is better?

IIUC, the reason for this is that gettimeofday is affected by wallclock
changes (think NTP):

       CLOCK_MONOTONIC
              Clock  that  cannot  be  set and represents monotonic time since
              some unspecified starting point.

...so by preferring CLOCK_MONOTONIC, the mtab locking code isn't
affected by clock jumps or skew. Bjorn, is this correct?

-- 
Jeff Layton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to