]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/mutex: Expose __mutex_owner()
authorJuri Lelli <juri.lelli@redhat.com>
Wed, 9 Oct 2024 23:53:36 +0000 (16:53 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 14 Oct 2024 10:52:41 +0000 (12:52 +0200)
commit3a9320ecb06c6c5ca5a8a595717e5186b5f20141
treea737714f73c08d5ca19e28298f145a577c8d0d01
parent5ec58525a1f1bd6ca8ea778e9df55cd82bc02e11
locking/mutex: Expose __mutex_owner()

Implementing proxy execution requires that scheduler code be able to
identify the current owner of a mutex. Expose __mutex_owner() for
this purpose (alone!). Includes a null mutex check, so that users
of the function can be simplified.

[Removed the EXPORT_SYMBOL]
[jstultz: Reworked per Peter's suggestions]
Signed-off-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Connor O'Brien <connoro@google.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>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
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-4-jstultz@google.com
kernel/locking/mutex.c
kernel/locking/mutex.h