pstore: Allow prz to control need for locking
authorJoel Fernandes <joelaf@google.com>
Thu, 20 Oct 2016 07:34:01 +0000 (00:34 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 16 Nov 2016 00:34:25 +0000 (16:34 -0800)
commit663deb47880f2283809669563c5a52ac7c6aef1a
treefdfbc8b4d4abcfdf55bc348ac266528912938ed1
parentd8991f51e55fd3c5b8ad055653a5998e53d4ec91
pstore: Allow prz to control need for locking

In preparation of not locking at all for certain buffers depending on if
there's contention, make locking optional depending on the initialization
of the prz.

Signed-off-by: Joel Fernandes <joelaf@google.com>
[kees: moved locking flag into prz instead of via caller arguments]
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c
fs/pstore/ram_core.c
include/linux/pstore_ram.h