• Steven Rostedt (Google)'s avatar
    x86/mm/kmmio: Remove redundant preempt_disable() · 3e127583
    Steven Rostedt (Google) authored
    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: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    3e127583
kmmio.c 16.6 KB