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>
Fri, 11 Aug 2017 16:30:11 +0000 (09:30 -0700)
commit77ba7f02ae77233c5780bff35d79aa3f7da15f70
treec085624a50713a9481c58404d999ddbb20cb7da1
parent78bfdaabd972468476d2f178e50a2cf7f15df9a8
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