Skip to content

ring_buffer: Make the benchmark slightly more safe

Petr Mladek lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 0 repliesNew

Changes in v3 from the cover letter

+ fixed several comments (suggested by Steven)
+ removed duplicate memory barrier (suggested by Steven)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ring_buffer: Do no not complete benchmark reader too earlykernel/trace/ring_buffer_benchmark.c+16 -90 replies
2/2ring_buffer: Fix more races when terminating the producer in the benchmarkkernel/trace/ring_buffer_benchmark.c+29 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] ring_buffer: Make the benchmark slightly more safe

These two patches fix potential races in the ring buffer benchmark. The first two versions were reviewed as part of the patchset that tried to convert some kthreads into the kthread worker API, see
http://thread.gmane.org/gmane.linux.kernel.api/13224/focus=13821

Changes in v3:

+ fixed several comments (suggested by Steven)
+ removed duplicate memory barrier (suggested by Steven)

Changes in v2:

+ keep the extra initialization; fix a race instead
+ move the setting of the current state (suggested by Steven)

Petr Mladek (2):
ring_buffer: Do no not complete benchmark reader too early
ring_buffer: Fix more races when terminating the producer in the
benchmark

 kernel/trace/ring_buffer_benchmark.c | 77 ++++++++++++++++++++----------------
 1 file changed, 44 insertions(+), 33 deletions(-)
Signature · 1 line
1.8.5.6