]> 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)
commitd7155c3ab8a4f7afc121cc5a46665499e2167430
tree1d586de79ba39e42367da99499740b4880dd98bd
parent9b25039c29f8459b4ebd74bfdbf7abb9d10e7434
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