]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make poll->wait dynamically allocated
authorJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 22:02:04 +0000 (15:02 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 22:02:56 +0000 (15:02 -0700)
commit9126401b94e5d357243ad4941fcd6565f229a561
tree025ec2f3808ffa90a83691e41273918d99f9a2b3
parent7ba8a9e22b0ff6b3ea718038382c4e50317e27b8
io_uring: make poll->wait dynamically allocated

In the quest to bring io_kiocb down to 3 cachelines, this one does
the trick. Make the wait_queue_entry for the poll command come out
of kmalloc instead of embedding it in struct io_poll_iocb, as the
latter is the largest member of io_kiocb. Once we trim this down a
bit, we're back at a healthy 192 bytes for struct io_kiocb.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c