]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pstore: Remove needless lock during console writes
authorKees Cook <keescook@chromium.org>
Thu, 1 Nov 2018 21:08:07 +0000 (14:08 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit3a3985d47e3c348360afce2eb62b21982c7ea20d
treed07338ad52318931cef2f83c03440380bddeb62b
parent8d1ba42e71f77fa5b7f0c445b7f93db43d941e10
pstore: Remove needless lock during console writes

BugLink: https://bugs.launchpad.net/bugs/1838700
commit b77fa617a2ff4d6beccad3d3d4b3a1f2d10368aa upstream.

Since the console writer does not use the preallocated crash dump buffer
any more, there is no reason to perform locking around it.

Fixes: 70ad35db3321 ("pstore: Convert console write to use ->write_buf")
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/pstore/platform.c