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>
Showing
- fs/pstore/platform.c 36 additions, 0 deletionsfs/pstore/platform.c
- fs/pstore/pmsg.c 6 additions, 29 deletionsfs/pstore/pmsg.c
- fs/pstore/ram.c 19 additions, 0 deletionsfs/pstore/ram.c
- fs/pstore/ram_core.c 45 additions, 2 deletionsfs/pstore/ram_core.c
- include/linux/pstore.h 8 additions, 3 deletionsinclude/linux/pstore.h
- include/linux/pstore_ram.h 5 additions, 2 deletionsinclude/linux/pstore_ram.h
Loading
Please register or sign in to comment