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:21:48 +0000 (12:21 +0200)
commitd80d6f65fb9aece7a624baae5dc9a968d97d0953
tree532d1ca9877944fc3339bb505f3163f4c34d4062
parent7a28b74256417017ba576979e315a39313f832d3
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