Merge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent
Pull ftrace ring-buffer resizing fix from Steve Rostedt. Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
commit
ef8ff74ed8
|
@ -1567,6 +1567,10 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size,
|
||||||
|
|
||||||
put_online_cpus();
|
put_online_cpus();
|
||||||
} else {
|
} else {
|
||||||
|
/* Make sure this CPU has been intitialized */
|
||||||
|
if (!cpumask_test_cpu(cpu_id, buffer->cpumask))
|
||||||
|
goto out;
|
||||||
|
|
||||||
cpu_buffer = buffer->buffers[cpu_id];
|
cpu_buffer = buffer->buffers[cpu_id];
|
||||||
|
|
||||||
if (nr_pages == cpu_buffer->nr_pages)
|
if (nr_pages == cpu_buffer->nr_pages)
|
||||||
|
|
Loading…
Reference in New Issue