diff options
author | Guilherme G. Piccoli <gpiccoli@igalia.com> | 2023-02-20 18:11:05 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-24 17:32:42 +0100 |
commit | c9888aaed1a25a0d89495e7b525136eb7b8b4faf (patch) | |
tree | 503798a281a8278738bee940b673981ea0f556be /net/smc | |
parent | e112b2e265690f6549357d511ccb4e7d5692cf4d (diff) | |
download | linux-stable-c9888aaed1a25a0d89495e7b525136eb7b8b4faf.tar.gz linux-stable-c9888aaed1a25a0d89495e7b525136eb7b8b4faf.tar.bz2 linux-stable-c9888aaed1a25a0d89495e7b525136eb7b8b4faf.zip |
parisc: Replace regular spinlock with spin_trylock on panic path
[ Upstream commit 829632dae8321787525ee37dc4828bbe6edafdae ]
The panic notifiers' callbacks execute in an atomic context, with
interrupts/preemption disabled, and all CPUs not running the panic
function are off, so it's very dangerous to wait on a regular
spinlock, there's a risk of deadlock.
Refactor the panic notifier of parisc/power driver to make use
of spin_trylock - for that, we've added a second version of the
soft-power function. Also, some comments were reorganized and
trailing white spaces, useless header inclusion and blank lines
were removed.
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Jeroen Roovers <jer@xs4all.nl>
Acked-by: Helge Deller <deller@gmx.de> # parisc
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions