percpu: convert spin_lock_irq to spin_lock_irqsave.
commit9b8b41319dba06ca3adb53b7aeafa4798353ac5d
authorDennis Zhou <dennis@kernel.org>
Tue, 18 Dec 2018 16:42:27 +0000 (18 08:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:22 +0000 (12 20:02 +0100)
treece183a9710c9ba549ee5aabf429440f66d0308dc
parentff32c3a3b0dd6d93de32a1c407d3a8247b23a407
percpu: convert spin_lock_irq to spin_lock_irqsave.

[ Upstream commit 6ab7d47bcbf0144a8cb81536c2cead4cde18acfe ]

From Michael Cree:
  "Bisection lead to commit b38d08f3181c ("percpu: restructure
   locking") as being the cause of lockups at initial boot on
   the kernel built for generic Alpha.

   On a suggestion by Tejun Heo that:

   So, the only thing I can think of is that it's calling
   spin_unlock_irq() while irq handling isn't set up yet.
   Can you please try the followings?

   1. Convert all spin_[un]lock_irq() to
      spin_lock_irqsave/unlock_irqrestore()."

Fixes: b38d08f3181c ("percpu: restructure locking")
Reported-and-tested-by: Michael Cree <mcree@orcon.net.nz>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
mm/percpu-km.c