mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
lib/smp_processor_id: fix imbalanced instrumentation_end() call
[ Upstream commitbd27acaac2
] Currently instrumentation_end() won't be called if printk_ratelimit() returned false. Link: https://lkml.kernel.org/r/a636d8e0-ad32-5888-acac-671f7f553bb3@I-love.SAKURA.ne.jp Fixes:126f21f0e8
("lib/smp_processor_id: Move it into noinstr section") Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Alexandre Chartre <alexandre.chartre@oracle.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
483ad8a16f
commit
3487aa558a
@ -46,9 +46,9 @@ unsigned int check_preemption_disabled(const char *what1, const char *what2)
|
|||||||
|
|
||||||
printk("caller is %pS\n", __builtin_return_address(0));
|
printk("caller is %pS\n", __builtin_return_address(0));
|
||||||
dump_stack();
|
dump_stack();
|
||||||
instrumentation_end();
|
|
||||||
|
|
||||||
out_enable:
|
out_enable:
|
||||||
|
instrumentation_end();
|
||||||
preempt_enable_no_resched_notrace();
|
preempt_enable_no_resched_notrace();
|
||||||
out:
|
out:
|
||||||
return this_cpu;
|
return this_cpu;
|
||||||
|
Loading…
Reference in New Issue
Block a user