On Wed, Jul 22, 2015 at 11:14:21AM +0900, Hidehiro Kawai wrote: > +DEFINE_SPINLOCK(panic_lock); At the very least this should be a raw spinlock, but wth aren't you using a simple atomic_xchg() ?