]> 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)
commit7b40e3ec1a67e7ffd429f2add6280df09ff9cbb4
treefdfbc8b4d4abcfdf55bc348ac266528912938ed1
parent493997c094e1cfd9262e66628d5bd44f8a0cc8b5
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