Re: [PATCH RT 07/17] arm64: replace read_lock to rcu lock in call_step_hook

From: Steven Rostedt
Date: Thu Mar 03 2016 - 09:12:59 EST


On Thu, 3 Mar 2016 09:53:00 +0530
Pratyush Anand <panand@xxxxxxxxxx> wrote:

> > diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c
> > index 636ba8b6240b..f66d668ffce9 100644
> > --- a/arch/arm64/kernel/debug-monitors.c
> > +++ b/arch/arm64/kernel/debug-monitors.c
> > @@ -190,19 +190,22 @@ static void clear_regs_spsr_ss(struct pt_regs *regs)
> > /* EL1 Single Step Handler hooks */
> > static LIST_HEAD(step_hook);
> > DEFINE_RWLOCK(step_hook_lock);
> > +static DEFINE_RWLOCK(step_hook_lock);
>
> I think, this got wrong during backporting, no?
> Should have been
> -DEFINE_RWLOCK(step_hook_lock);
>

Crap! Yep you are right. I screwed this up. I'll go fix it. Luckily,
that patch ended there. It didn't affect 3.12 or earlier.

Thanks for catching that.

-- Steve

> > +static DEFINE_SPINLOCK(step_hook_lock);
>
> ~Pratyush