]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Thu, 1 Oct 2020 02:32:33 +0000 (20:32 -0600)
commitf574fb6f9d1e3f2ce8fb047243013544f19c6fee
tree1d586de79ba39e42367da99499740b4880dd98bd
parent3483e6bc967f9725b1be6aee03f185de1026ec88
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