[PATCH 13/21] vtime: Fix racy cputime delta update

2013-07-26 Thread Frederic Weisbecker
get_vtime_delta() must be called under the task vtime_seqlock with the code that does the cputime accounting flush. Otherwise the cputime reader can be fooled and run into a race where it sees the snapshot update but misses the cputime flush. As a result it can report a cputime that is way too

[PATCH 13/21] vtime: Fix racy cputime delta update

2013-07-26 Thread Frederic Weisbecker
get_vtime_delta() must be called under the task vtime_seqlock with the code that does the cputime accounting flush. Otherwise the cputime reader can be fooled and run into a race where it sees the snapshot update but misses the cputime flush. As a result it can report a cputime that is way too