commit | f83c9d0fe42a7544b4d4ffcebb2e6716fcfd95c0 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Tue Nov 11 18:47:44 2008 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Tue Nov 11 18:47:44 2008 +0100 |
tree | 37532424c8ea5a8dac649cb2baed04223722c09f | |
parent | f536aafc5a2e6f0c8f1577a155e6f93db5e469f0 [diff] |
ring-buffer: add reader lock Impact: serialize reader accesses to individual CPU ring buffers The code in the ring buffer expects only one reader at a time, but currently it puts that requirement on the caller. This is not strong enough, and this patch adds a "reader_lock" that serializes the access to the reader API of the ring buffer. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>