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>
Mon, 11 Sep 2023 15:41:32 +0000 (09:41 -0600)
commite5c7f5eee9c808404f2936935a3a69fea0907010
tree560281189397ac24fa9e0f088f46eb5822657112
parent397ba0ae6d43b02c8bf7007628e518eeb2adce77
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/futex/futex.h
kernel/futex/waitwake.c