Re: [RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-06 Thread john stultz
On Tue, 2005-09-06 at 10:33 -0700, Christoph Lameter wrote: > On Thu, 1 Sep 2005, john stultz wrote: > > > I recently ran into a bug with an older kernel where xtime's tv_nsec > > field had accumulated more then 2 seconds worth of time. The timespec's > > tv_nsec is a signed long, however gett

Re: [RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-06 Thread Christoph Lameter
On Thu, 1 Sep 2005, john stultz wrote: > I recently ran into a bug with an older kernel where xtime's tv_nsec > field had accumulated more then 2 seconds worth of time. The timespec's > tv_nsec is a signed long, however gettimeofday() treats it as an > unsigned long. Thus when the failure oc

Re: [RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-01 Thread George Anzinger
john stultz wrote: All, I recently ran into a bug with an older kernel where xtime's tv_nsec field had accumulated more then 2 seconds worth of time. The timespec's tv_nsec is a signed long, however gettimeofday() treats it as an unsigned long. Thus when the failure occured, very strange

Re: [RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-01 Thread john stultz
On Thu, 2005-09-01 at 23:37 +0200, Eric Dumazet wrote: > john stultz a écrit : > > All, > > I recently ran into a bug with an older kernel where xtime's tv_nsec > > field had accumulated more then 2 seconds worth of time. The timespec's > > tv_nsec is a signed long, however gettimeofday() treat

Re: [RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-01 Thread Eric Dumazet
john stultz a écrit : All, I recently ran into a bug with an older kernel where xtime's tv_nsec field had accumulated more then 2 seconds worth of time. The timespec's tv_nsec is a signed long, however gettimeofday() treats it as an unsigned long. Thus when the failure occured, very stran

[RFC][PATCH] Use proper casting with signed timespec.tv_nsec values

2005-09-01 Thread john stultz
All, I recently ran into a bug with an older kernel where xtime's tv_nsec field had accumulated more then 2 seconds worth of time. The timespec's tv_nsec is a signed long, however gettimeofday() treats it as an unsigned long. Thus when the failure occured, very strange and difficult to debu