• Jens Axboe's avatar
    io_uring: use private ctx wait queue entries for SQPOLL · 6a779382
    Jens Axboe authored
    This is in preparation to sharing the poller thread between rings. For
    that we need per-ring wait_queue_entry storage, and we can't easily put
    that on the stack if one thread is managing multiple rings.
    
    We'll also be sharing the wait_queue_head across rings for the purposes
    of wakeups, provide the usual private ring wait_queue_head for now but
    make it a pointer so we can easily override it when sharing.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    6a779382
io_uring.c 224 KB