summaryrefslogtreecommitdiffstats
path: root/kernel/bpf/helpers.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2024-10-10 01:53:34 +0200
committerPeter Zijlstra <peterz@infradead.org>2024-10-14 12:52:40 +0200
commit894d1b3db41cf7e6ae0304429a1747b3c3f390bc (patch)
tree3bcda09ee457a5edb2df9b51bbdfa04377394150 /kernel/bpf/helpers.c
parentsched: Improve cache locality of RSEQ concurrency IDs for intermittent workloads (diff)
downloadlinux-894d1b3db41cf7e6ae0304429a1747b3c3f390bc.tar.xz
linux-894d1b3db41cf7e6ae0304429a1747b3c3f390bc.zip
locking/mutex: Remove wakeups from under mutex::wait_lock
In preparation to nest mutex::wait_lock under rq::lock we need to remove wakeups from under it. Do this by utilizing wake_qs to defer the wakeup until after the lock is dropped. [Heavily changed after 55f036ca7e74 ("locking: WW mutex cleanup") and 08295b3b5bee ("locking: Implement an algorithm choice for Wound-Wait mutexes")] [jstultz: rebased to mainline, added extra wake_up_q & init to avoid hangs, similar to Connor's rework of this patch] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Juri Lelli <juri.lelli@redhat.com> Signed-off-by: John Stultz <jstultz@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Metin Kaya <metin.kaya@arm.com> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Tested-by: K Prateek Nayak <kprateek.nayak@amd.com> Tested-by: Metin Kaya <metin.kaya@arm.com> Link: https://lore.kernel.org/r/20241009235352.1614323-2-jstultz@google.com
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions