Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187869
b: refs/heads/master
c: 52fbe9c
h: refs/heads/master
i:
  187867: c485543
v: v3
  • Loading branch information
Lai Jiangshan authored and Steven Rostedt committed Mar 13, 2010
1 parent 71699ed commit 275794c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 915a0b575fdb2376135ed9334b3ccb1eb51db622
refs/heads/master: 52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4
12 changes: 6 additions & 6 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2232,12 +2232,12 @@ ring_buffer_lock_reserve(struct ring_buffer *buffer, unsigned long length)
if (ring_buffer_flags != RB_BUFFERS_ON)
return NULL;

if (atomic_read(&buffer->record_disabled))
return NULL;

/* If we are tracing schedule, we don't want to recurse */
resched = ftrace_preempt_disable();

if (atomic_read(&buffer->record_disabled))
goto out_nocheck;

if (trace_recursive_lock())
goto out_nocheck;

Expand Down Expand Up @@ -2469,11 +2469,11 @@ int ring_buffer_write(struct ring_buffer *buffer,
if (ring_buffer_flags != RB_BUFFERS_ON)
return -EBUSY;

if (atomic_read(&buffer->record_disabled))
return -EBUSY;

resched = ftrace_preempt_disable();

if (atomic_read(&buffer->record_disabled))
goto out;

cpu = raw_smp_processor_id();

if (!cpumask_test_cpu(cpu, buffer->cpumask))
Expand Down

0 comments on commit 275794c

Please sign in to comment.