pstore/pmsg: drop bounce buffer
authorMark Salyzyn <salyzyn@android.com>
Thu, 1 Sep 2016 15:13:46 +0000 (08:13 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 8 Sep 2016 22:01:10 +0000 (15:01 -0700)
commit5bf6d1b92715f224ef6e1c3abca5dd63eeb4915d
tree09139364ae61fbb0b188c0a762861bf800b70d23
parent79d955af711a6e20207783590a2cfddbd649568b
pstore/pmsg: drop bounce buffer

Removing a bounce buffer copy operation in the pmsg driver path is
always better. We also gain in overall performance by not requesting
a vmalloc on every write as this can cause precious RT tasks, such
as user facing media operation, to stall while memory is being
reclaimed. Added a write_buf_user to the pstore functions, a backup
platform write_buf_user that uses the small buffer that is part of
the instance, and implemented a ramoops write_buf_user that only
supports PSTORE_TYPE_PMSG.

Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c
fs/pstore/pmsg.c
fs/pstore/ram.c
fs/pstore/ram_core.c
include/linux/pstore.h
include/linux/pstore_ram.h