pstore: Use dynamic spinlock initializer
authorKees Cook <keescook@chromium.org>
Mon, 6 Mar 2017 06:08:58 +0000 (22:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:43 +0000 (18:59 -0700)
commite10f7bd6a6b8484ebe140a793d30b0cc56603620
tree4e9388e0114d76bc79ebc130c8fe5992619911b2
parenta0840275e3ebddd5d1349cd4908777e11ba50311
pstore: Use dynamic spinlock initializer

commit e9a330c4289f2ba1ca4bf98c2b430ab165a8931b upstream.

The per-prz spinlock should be using the dynamic initializer so that
lockdep can correctly track it. Without this, under lockdep, we get a
warning at boot that the lock is in non-static memory.

Fixes: 109704492ef6 ("pstore: Make spinlock per zone instead of global")
Fixes: 76d5692a5803 ("pstore: Correctly initialize spinlock and flags")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/pstore/ram_core.c