aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/ring_buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 0d64c51ab4df..eccb4cf1e998 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -1208,9 +1208,9 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned nr_pages)
1208 return; 1208 return;
1209 1209
1210 rb_reset_cpu(cpu_buffer); 1210 rb_reset_cpu(cpu_buffer);
1211 spin_unlock_irq(&cpu_buffer->reader_lock);
1212
1213 rb_check_pages(cpu_buffer); 1211 rb_check_pages(cpu_buffer);
1212
1213 spin_unlock_irq(&cpu_buffer->reader_lock);
1214} 1214}
1215 1215
1216static void 1216static void
@@ -1233,9 +1233,9 @@ rb_insert_pages(struct ring_buffer_per_cpu *cpu_buffer,
1233 list_add_tail(&bpage->list, cpu_buffer->pages); 1233 list_add_tail(&bpage->list, cpu_buffer->pages);
1234 } 1234 }
1235 rb_reset_cpu(cpu_buffer); 1235 rb_reset_cpu(cpu_buffer);
1236 spin_unlock_irq(&cpu_buffer->reader_lock);
1237
1238 rb_check_pages(cpu_buffer); 1236 rb_check_pages(cpu_buffer);
1237
1238 spin_unlock_irq(&cpu_buffer->reader_lock);
1239} 1239}
1240 1240
1241/** 1241/**