mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ring_buffer: Make the benchmark slightly more safe
@ 2015-09-07 12:38 Petr Mladek
  2015-09-07 12:38 ` [PATCH v3 1/2] ring_buffer: Do no not complete benchmark reader too early Petr Mladek
  2015-09-07 12:38 ` [PATCH v3 2/2] ring_buffer: Fix more races when terminating the producer in the benchmark Petr Mladek
  0 siblings, 2 replies; 3+ messages in thread
From: Petr Mladek @ 2015-09-07 12:38 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: Ingo Molnar, Jiri Kosina, linux-kernel, Petr Mladek

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(-)

-- 
1.8.5.6


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-07 12:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-07 12:38 [PATCH v3 0/2] ring_buffer: Make the benchmark slightly more safe Petr Mladek
2015-09-07 12:38 ` [PATCH v3 1/2] ring_buffer: Do no not complete benchmark reader too early Petr Mladek
2015-09-07 12:38 ` [PATCH v3 2/2] ring_buffer: Fix more races when terminating the producer in the benchmark Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®