aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-versatile.c
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2022-12-14 23:18:34 +0000
committerKees Cook <[email protected]>2022-12-15 03:37:42 +0000
commit76d62f24db07f22ccf9bc18ca793c27d4ebef721 (patch)
treea1a53f0abbae596ad1bb60836c3447092b16c5b7 /drivers/pci/controller/pci-versatile.c
parentpstore: Avoid kcore oops by vmap()ing with VM_IOREMAP (diff)
downloadkernel-76d62f24db07f22ccf9bc18ca793c27d4ebef721.tar.gz
kernel-76d62f24db07f22ccf9bc18ca793c27d4ebef721.zip
pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
Wei Wang reported seeing priority inversion caused latencies caused by contention on pmsg_lock, and suggested it be switched to a rt_mutex. I was initially hesitant this would help, as the tasks in that trace all seemed to be SCHED_NORMAL, so the benefit would be limited to only nice boosting. However, another similar issue was raised where the priority inversion was seen did involve a blocked RT task so it is clear this would be helpful in that case. Cc: Wei Wang <[email protected]> Cc: Midas Chien<[email protected]> Cc: Connor O'Brien <[email protected]> Cc: Kees Cook <[email protected]> Cc: Anton Vorontsov <[email protected]> Cc: Colin Cross <[email protected]> Cc: Tony Luck <[email protected]> Cc: [email protected] Fixes: 9d5438f462ab ("pstore: Add pmsg - user-space accessible pstore object") Reported-by: Wei Wang <[email protected]> Signed-off-by: John Stultz <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-versatile.c')
0 files changed, 0 insertions, 0 deletions