OSDN Git Service

block: add single bio async direct IO helper
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 23 Oct 2021 16:21:32 +0000 (17:21 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 14:00:48 +0000 (08:00 -0600)
commit54a88eb838d37af930c9f19e1930a4fba6789cb5
tree35259bb17db8f95bb081964e38501bbe6d1731ea
parent599593a82fc57f5e9453c8ef7420df3206934a0c
block: add single bio async direct IO helper

As with __blkdev_direct_IO_simple(), we can implement direct IO more
efficiently if there is only one bio. Add __blkdev_direct_IO_async() and
blkdev_bio_end_io_async(). This patch brings me from 4.45-4.5 MIOPS with
nullblk to 4.7+.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f0ae4109b7a6934adede490f84d188d53b97051b.1635006010.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c