io_uring: wire up bio allocation cache
authorJens Axboe <axboe@kernel.dk>
Mon, 8 Mar 2021 18:40:23 +0000 (11:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jul 2021 20:04:43 +0000 (14:04 -0600)
commit4082e2788e4fd16fb8bff2dcf646b7c2a1304ff9
treeb2722103b0fb54824c534324f8070ec48a9b80e6
parent8d752db80dfc04f341d50c3ef35010ee43cd17ae
io_uring: wire up bio allocation cache

Initialize a bio allocation cache, and mark it as being used for
IOPOLL. We could use it for non-polled IO as well, but it'd need some
locking and probably would negate much of the win in that case.

We start with IOPOLL, as completions are locked by the ctx lock anyway.
So no further locking is needed there.

This brings an IOPOLL gen2 Optane QD=128 workload from ~3.0M IOPS to
~3.25M IOPS.

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