Re: [PATCH 2/2] x86/mm/kmmio: Remove rcu_read_lock()

From: Steven Rostedt
Date: Fri Dec 09 2022 - 13:10:06 EST


On Fri, 9 Dec 2022 13:03:34 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Wed, 7 Dec 2022 09:36:21 -0800
> "Paul E. McKenney" <paulmck@xxxxxxxxxx> wrote:
>
> > > Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxx>
> > > Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
> >
> > Might be worth adding a comment saying that others are using this
> > preempt_disable() to block an RCU grace period, but that is up to
> > you guys. I will let you and your future selves be the judges.
>
> Good point. I'll add a comment in v2.

Actually, rcu_read_lock_sched_notrace() may work instead. Let me test it.

-- Steve