diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-11-23 10:35:36 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-24 09:23:17 -0500 |
commit | b81f472a208d3e2b4392faa6d17037a89442f4ce (patch) | |
tree | 475084e920b2cd8f45cccc45dfa7994b742113d1 /REPORTING-BUGS | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) | |
download | linux-b81f472a208d3e2b4392faa6d17037a89442f4ce.tar.bz2 |
ring-buffer: Update read stamp with first real commit on page
Do not update the read stamp after swapping out the reader page from the
write buffer. If the reader page is swapped out of the buffer before an
event is written to it, then the read_stamp may get an out of date
timestamp, as the page timestamp is updated on the first commit to that
page.
rb_get_reader_page() only returns a page if it has an event on it, otherwise
it will return NULL. At that point, check if the page being returned has
events and has not been read yet. Then at that point update the read_stamp
to match the time stamp of the reader page.
Cc: stable@vger.kernel.org # 2.6.30+
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions