Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158477
b: refs/heads/master
c: 41b6a95
h: refs/heads/master
i:
  158475: 2f01207
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 4, 2009
1 parent 9660e07 commit b33802a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e254c1d183f0225ad21f9049641529e56cce4da
refs/heads/master: 41b6a95d693319f804607b559893fbbd27498548
4 changes: 4 additions & 0 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3373,12 +3373,16 @@ void ring_buffer_reset_cpu(struct ring_buffer *buffer, int cpu)

spin_lock_irqsave(&cpu_buffer->reader_lock, flags);

if (RB_WARN_ON(cpu_buffer, local_read(&cpu_buffer->committing)))
goto out;

__raw_spin_lock(&cpu_buffer->lock);

rb_reset_cpu(cpu_buffer);

__raw_spin_unlock(&cpu_buffer->lock);

out:
spin_unlock_irqrestore(&cpu_buffer->reader_lock, flags);

atomic_dec(&cpu_buffer->record_disabled);
Expand Down

0 comments on commit b33802a

Please sign in to comment.