lkml.org 
[lkml]   [2008]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] ring-buffer: fix deadlock from reader_lock in read_start

* Steven Rostedt <rostedt@goodmis.org> wrote:

> Impact: deadlock fix in ring_buffer_read_start
>
> The ring_buffer_iter_reset was called from ring_buffer_read_start
> where both grabbed the reader_lock.
>
> This patch separates out the internals of ring_buffer_iter_reset
> to its own function so that both APIs may grab the reader_lock.
>
> Signed-off-by: Steven Rostedt <srostedt@redhat.com>
> ---
> kernel/trace/ring_buffer.c | 29 +++++++++++++++++------------
> 1 files changed, 17 insertions(+), 12 deletions(-)

applied to tip/tracing/ring-buffer, thanks Steve!

Ingo


\
 
 \ /
  Last update: 2008-11-12 11:29    [W:0.046 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site