]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: allow the file system to provide a bio_set for direct I/O
authorChristoph Hellwig <hch@lst.de>
Thu, 5 May 2022 20:11:10 +0000 (15:11 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:32 +0000 (17:17 +0200)
commit082fc84b72627c8ea7946ef4c24b82dad28ed08f
treee51f5510b447ee1ce4908c19ad26c45e3cf8dc18
parent043a58a28cc528717778ce6617f1b15d9d1f1578
iomap: allow the file system to provide a bio_set for direct I/O

Allow the file system to provide a specific bio_set for allocating
direct I/O bios.  This will allow file systems that use the
->submit_io hook to stash away additional information for file system
use.

To make use of this additional space for information in the completion
path, the file system needs to override the ->bi_end_io callback and
then call back into iomap, so export iomap_dio_bio_end_io for that.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/iomap/direct-io.c
include/linux/iomap.h