pstore: Remove needless lock during console writes
authorKees Cook <keescook@chromium.org>
Thu, 1 Nov 2018 21:08:07 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:20:52 +0000 (12:20 +0200)
commitc63ce7166dafd82c679873107ec649ff9f768d1e
treeb0c6a7712189cc21e555685cc0d9f2e2c3f612f1
parenta3b8b4ad6db7eea67a67eb88cc5f6e101f89dbc1
pstore: Remove needless lock during console writes

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>
fs/pstore/platform.c