diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-04-22 22:44:22 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-06-22 17:42:08 +0300 |
commit | e112c41341c03d9224a9fc522bdb3539bc849b56 (patch) | |
tree | ebdf35aeef76543b9af96ebd50848d2833dd89cf /include/linux/compiler_attributes.h | |
parent | 1a8122960484b19d8d887fb32e1cf42be5647533 (diff) | |
download | linux-e112c41341c03d9224a9fc522bdb3539bc849b56.tar.xz |
futex: Prepare futex_lock_pi() for runtime clock selection
futex_lock_pi() is the only futex operation which cannot select the clock
for timeouts (CLOCK_MONOTONIC/CLOCK_REALTIME). That's inconsistent and
there is no particular reason why this cannot be supported.
This was overlooked when CLOCK_REALTIME_FLAG was introduced and
unfortunately not reported when the inconsistency was discovered in glibc.
Prepare the function and enforce the CLOCK_REALTIME_FLAG on FUTEX_LOCK_PI
so that a new FUTEX_LOCK_PI2 can implement it correctly.
Reported-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210422194705.338657741@linutronix.de
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions