]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing/rb: Init the CPU mask on allocation
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 7 Dec 2016 13:31:33 +0000 (14:31 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 12 Dec 2016 22:57:26 +0000 (17:57 -0500)
commit99e6f6e8134b0c9d5d82eb2af1068a57199125e4
treee6049ca82e99b94f25a4f55f8b0b238d646f5fe9
parentc59f29cb144a6a0dfac16ede9dc8eafc02dc56ca
tracing/rb: Init the CPU mask on allocation

Before commit b32614c03413 ("tracing/rb: Convert to hotplug state
machine") the allocated cpumask was initialized to the mask of ONLINE or
POSSIBLE CPUs. After the CPU hotplug changes the buffer initialisation
moved to trace_rb_cpu_prepare() but I forgot to initially set the
cpumask to zero. This is done now.

Link: http://lkml.kernel.org/r/20161207133133.hzkcqfllxcdi3joz@linutronix.de
Fixes: b32614c03413 ("tracing/rb: Convert to hotplug state machine")
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c