Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189419
b: refs/heads/master
c: 292f60c
h: refs/heads/master
i:
  189417: bf8cb97
  189415: d333bac
v: v3
  • Loading branch information
Julia Lawall authored and Steven Rostedt committed Mar 29, 2010
1 parent 19ca8c6 commit 94ba0b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: e36673ec5126f15a8cddf6049aede7bdcf484c26
refs/heads/master: 292f60c0c4ab44aa2d589ba03c12e64a3b3c5e38
8 changes: 5 additions & 3 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,18 +1209,19 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned nr_pages)

for (i = 0; i < nr_pages; i++) {
if (RB_WARN_ON(cpu_buffer, list_empty(cpu_buffer->pages)))
return;
goto out;
p = cpu_buffer->pages->next;
bpage = list_entry(p, struct buffer_page, list);
list_del_init(&bpage->list);
free_buffer_page(bpage);
}
if (RB_WARN_ON(cpu_buffer, list_empty(cpu_buffer->pages)))
return;
goto out;

rb_reset_cpu(cpu_buffer);
rb_check_pages(cpu_buffer);

out:
spin_unlock_irq(&cpu_buffer->reader_lock);
}

Expand All @@ -1237,7 +1238,7 @@ rb_insert_pages(struct ring_buffer_per_cpu *cpu_buffer,

for (i = 0; i < nr_pages; i++) {
if (RB_WARN_ON(cpu_buffer, list_empty(pages)))
return;
goto out;
p = pages->next;
bpage = list_entry(p, struct buffer_page, list);
list_del_init(&bpage->list);
Expand All @@ -1246,6 +1247,7 @@ rb_insert_pages(struct ring_buffer_per_cpu *cpu_buffer,
rb_reset_cpu(cpu_buffer);
rb_check_pages(cpu_buffer);

out:
spin_unlock_irq(&cpu_buffer->reader_lock);
}

Expand Down

0 comments on commit 94ba0b2

Please sign in to comment.