|
@@ -945,6 +945,10 @@ static int rb_check_pages(struct ring_buffer_per_cpu *cpu_buffer)
|
|
struct list_head *head = cpu_buffer->pages;
|
|
struct list_head *head = cpu_buffer->pages;
|
|
struct buffer_page *bpage, *tmp;
|
|
struct buffer_page *bpage, *tmp;
|
|
|
|
|
|
|
|
+ /* Reset the head page if it exists */
|
|
|
|
+ if (cpu_buffer->head_page)
|
|
|
|
+ rb_set_head_page(cpu_buffer);
|
|
|
|
+
|
|
rb_head_page_deactivate(cpu_buffer);
|
|
rb_head_page_deactivate(cpu_buffer);
|
|
|
|
|
|
if (RB_WARN_ON(cpu_buffer, head->next->prev != head))
|
|
if (RB_WARN_ON(cpu_buffer, head->next->prev != head))
|