x86/mm/kmmio: Remove redundant preempt_disable()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 12 Dec 2022 15:37:03 +0000 (10:37 -0500)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 12 Dec 2022 15:54:48 +0000 (10:54 -0500)
commit3e12758392bee50135301b0189c064ab80980aca
tree6b7396edb304412a33c7dd7babde585145b79bb9
parentc1ac03af6ed45d05786c219d102f37eb44880f28
x86/mm/kmmio: Remove redundant preempt_disable()

Now that kmmio uses rcu_read_lock_sched_notrace() there's no reason to
call preempt_disable() as the read_lock_sched_notrace() already does that
and is redundant.

This also removes the preempt_enable_no_resched() as the "no_resched()"
portion was bogus as there's no reason to do that.

Link: https://lkml.kernel.org/r/20221212103703.7129cc5d@gandalf.local.home
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "x86@kernel.org" <x86@kernel.org>
Cc: Karol Herbst <karolherbst@gmail.com>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
arch/x86/mm/kmmio.c