block: enable bio caching use for passthru IO
authorJens Axboe <axboe@kernel.dk>
Fri, 5 Aug 2022 22:43:09 +0000 (16:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Aug 2022 15:00:54 +0000 (09:00 -0600)
commitd09d4be9e0ff0cca335e461a6d28fd61131bb455
tree9a728b3ebdae885cc3c12843613aa51dd77fe3c9
parentf65a6362bd29bf794bf05fc4f75dd8dff1017757
block: enable bio caching use for passthru IO

bdev based polled O_DIRECT is currently quite a bit faster than
passthru on the same device, and one of the reaons is that we're not
able to use the bio caching for passthru IO.

If REQ_POLLED is set on the request, use the fs bio set for grabbing a
bio from the caches, if available. This saves 5-6% of CPU over head
for polled passthru IO.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c