]> git.itanic.dy.fi Git - linux-stable/commit
futex: abstract out a __futex_wake_mark() helper
authorJens Axboe <axboe@kernel.dk>
Wed, 12 Jul 2023 15:14:52 +0000 (09:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Sep 2023 08:36:54 +0000 (02:36 -0600)
commite52c43403c9b839a30a9cfc4b75109581389d764
treecb8ecfe7d98899fea78e50c481f507a04efe7847
parent12a4be50aff30ee8f2c6a64020c82a4e997e8d6c
futex: abstract out a __futex_wake_mark() helper

Move the unqueue and lock_ptr clear into a helper that futex_wake_mark()
calls. Add it to the public functions as well, in preparation for using
it outside the core futex code.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/futex/futex.h
kernel/futex/waitwake.c