mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 20:40:24 +09:00
Revert "tracing: Zero the pipe cpumask on alloc to avoid spurious -EBUSY"
This reverts commit99a8d14d79which is commit3d07fa1dd1upstream. The commit it fixes is about to be reverted, so also revert it. Bug: 161946584 Change-Id: I0c442ffd94cfe75b8d61318d2913de9b818ba7f3 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -9362,7 +9362,7 @@ static struct trace_array *trace_array_create(const char *name)
|
||||
if (!alloc_cpumask_var(&tr->tracing_cpumask, GFP_KERNEL))
|
||||
goto out_free_tr;
|
||||
|
||||
if (!zalloc_cpumask_var(&tr->pipe_cpumask, GFP_KERNEL))
|
||||
if (!alloc_cpumask_var(&tr->pipe_cpumask, GFP_KERNEL))
|
||||
goto out_free_tr;
|
||||
|
||||
tr->trace_flags = global_trace.trace_flags & ~ZEROED_TRACE_FLAGS;
|
||||
@@ -10252,7 +10252,7 @@ __init static int tracer_alloc_buffers(void)
|
||||
if (trace_create_savedcmd() < 0)
|
||||
goto out_free_temp_buffer;
|
||||
|
||||
if (!zalloc_cpumask_var(&global_trace.pipe_cpumask, GFP_KERNEL))
|
||||
if (!alloc_cpumask_var(&global_trace.pipe_cpumask, GFP_KERNEL))
|
||||
goto out_free_savedcmd;
|
||||
|
||||
/* TODO: make the number of buffers hot pluggable with CPUS */
|
||||
|
||||
Reference in New Issue
Block a user