]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
pstore: Use dynamic spinlock initializer
authorKees Cook <keescook@chromium.org>
Mon, 6 Mar 2017 06:08:58 +0000 (22:08 -0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 22 Aug 2017 09:58:03 +0000 (06:58 -0300)
commitd48f98e33ed1bfb1a764a5f4fccf83c235adf921
treef881f9d58d468a595694340865d3ee15f74a4ae3
parent6575f665a694b38c69a4c7c187568ff3879dba21
pstore: Use dynamic spinlock initializer

BugLink: http://bugs.launchpad.net/bugs/1710646
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/pstore/ram_core.c