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)
commitc7dae4ba46c9d7d56430b800907b708711995414
tree5194bd010d3599c0241a6abbea1f56e026441a26
parented670c3f90a67d9e16ab6d8893be6f072d79cd4c
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