io_uring: use private ctx wait queue entries for SQPOLL
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Sep 2020 18:21:41 +0000 (12:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 5 Sep 2020 22:07:35 +0000 (16:07 -0600)
commitd4b115a09a10d8c5efbe0597f8bc7ad4b4db6483
tree4466215358e6fb913b77279b8379852ef10f3cd9
parent03a54c18518d196693217aa9f683369eacb01daf
io_uring: use private ctx wait queue entries for SQPOLL

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: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c