Re: [RFC 4/4] io_uring: implement futex wait
From: Jens Axboe
Date: Tue Jun 01 2021 - 11:45:31 EST
On 6/1/21 8:58 AM, Pavel Begunkov wrote:
> Add futex wait requests, those always go through io-wq for simplicity.
Not a huge fan of that, I think this should tap into the waitqueue
instead and just rely on the wakeup callback to trigger the event. That
would be a lot more efficient than punting to io-wq, both in terms of
latency on trigger, but also for efficiency if the app is waiting on a
lot of futexes.
--
Jens Axboe