aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorGuilherme G. Piccoli <[email protected]>2022-08-19 19:17:29 -0300
committerWei Liu <[email protected]>2022-11-28 16:48:20 +0000
commit1d044ca035dc22df0d3b39e56f2881071d9118bd (patch)
treec7ace6be93408f78f779b32a09532a92efbeb1b2 /tools/perf/scripts/python/syscall-counts.py
parentdc60f2db39c3f8da4490c1ed827022bbc925d81c (diff)
video: hyperv_fb: Avoid taking busy spinlock on panic path
The Hyper-V framebuffer code registers a panic notifier in order to try updating its fbdev if the kernel crashed. The notifier callback is straightforward, but it calls the vmbus_sendpacket() routine eventually, and such function takes a spinlock for the ring buffer operations. Panic path runs in atomic context, with local interrupts and preemption disabled, and all secondary CPUs shutdown. That said, taking a spinlock might cause a lockup if a secondary CPU was disabled with such lock taken. Fix it here by checking if the ring buffer spinlock is busy on Hyper-V framebuffer panic notifier; if so, bail-out avoiding the potential lockup scenario. Cc: Andrea Parri (Microsoft) <[email protected]> Cc: Dexuan Cui <[email protected]> Cc: Haiyang Zhang <[email protected]> Cc: "K. Y. Srinivasan" <[email protected]> Cc: Michael Kelley <[email protected]> Cc: Stephen Hemminger <[email protected]> Cc: Tianyu Lan <[email protected]> Cc: Wei Liu <[email protected]> Tested-by: Fabio A M Martins <[email protected]> Signed-off-by: Guilherme G. Piccoli <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions