io_uring/rsrc: optimise registered huge pages
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 22 Feb 2023 14:36:51 +0000 (14:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Feb 2023 16:57:24 +0000 (09:57 -0700)
commit57bebf807e2abcf87d96b9de1266104ee2d8fc2f
treef4c559a79f63484b72fd1cfcea0cb84676274aa9
parentb000ae0ec2d709046ac1a3c5722fea417f8a067e
io_uring/rsrc: optimise registered huge pages

When registering huge pages, internally io_uring will split them into
many PAGE_SIZE bvec entries. That's bad for performance as drivers need
to eventually dma-map the data and will do it individually for each bvec
entry. Coalesce huge pages into one large bvec.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c