On Tue, 24 Aug 2010 13:07:55 -0500
Steve French <smfre...@gmail.com> 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 <jlay...@samba.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to