]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1784781975949e2fd133976241578749d1a67a6a
treefdfbc8b4d4abcfdf55bc348ac266528912938ed1
parentd4ec5befe770cebf5fa2b280ca1458f75ee14b70
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