futex_requeue_pi optimization
This patch provides the futex_requeue_pi functionality, which allows some threads waiting on a normal futex to be requeued on the wait-queue of a PI-futex. This provides an optimization, already used for (normal) futexes, to be used with the PI-futexes. This optimization is currently used by the glibc in pthread_broadcast, when using "normal" mutexes. With futex_requeue_pi, it can be used with PRIO_INHERIT mutexes too. Signed-off-by:Pierre Peiffer <pierre.peiffer@bull.net> Cc: Ingo Molnar <mingo@elte.hu> Cc: Ulrich Drepper <drepper@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- include/linux/futex.h 8 additions, 1 deletioninclude/linux/futex.h
- kernel/futex.c 487 additions, 54 deletionskernel/futex.c
- kernel/futex_compat.c 2 additions, 1 deletionkernel/futex_compat.c
- kernel/rtmutex.c 9 additions, 32 deletionskernel/rtmutex.c
- kernel/rtmutex_common.h 34 additions, 0 deletionskernel/rtmutex_common.h
Loading
Please register or sign in to comment