]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: enable req cache for IRQ driven IO
authorJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 02:53:37 +0000 (19:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 14:33:12 +0000 (07:33 -0700)
commitc6956d0bb9bc73702dd08bb7d933725f76e4c20c
tree5194bd010d3599c0241a6abbea1f56e026441a26
parenta526cfe15ade9696605859e677a70c3ddc3885d6
io_uring: enable req cache for IRQ driven IO

This is the last class of requests that cannot utilize the req alloc
cache. Add a per-ctx req cache that is protected by the completion_lock,
and refill our submit side cache when it gets over our batch count.

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