Messages in this thread | | | Subject | Re: [PATCH] time/fs - file's time race with vgettimeofday | From | john stultz <> | Date | Wed, 07 Jul 2010 10:20:30 -0700 |
| |
On Wed, 2010-07-07 at 19:11 +0200, Jiri Olsa wrote: > On Tue, Jul 06, 2010 at 04:11:40PM -0700, john stultz wrote: > > - vgettimeofday(&tv, NULL); > > - result = tv.tv_sec; > > + do { > > + seq = read_seqbegin(&__vsyscall_gtod_data.lock); > > + > > + result = vsyscall_gtod_data.wall_time_sec; > > + > > + } while (read_seqretry(&__vsyscall_gtod_data.lock, seq)); > > + > > if (t) > > *t = result; > > return result; > > > > > > I think there's a typo in using "vsyscall_gtod_data" inside > the vtime call it should be "__vsyscall_gtod_data" intead.
Quite right! Thanks for catching it! -john
| |