]> www.infradead.org Git - users/hch/misc.git/commit
block: add a bdev_rw_virt helper
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 12:04:26 +0000 (14:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 May 2025 13:31:07 +0000 (07:31 -0600)
commit10b1e59cdadabff16fc78eb2ca4c341b1502293c
treeb3b028ec44f1eb48b8ac5fec40d309c2f59a9d1a
parent850e210d5ad21b94b55b97d4d82b4cdeb0bb05df
block: add a bdev_rw_virt helper

Add a helper to perform synchronous I/O on a kernel direct map range.
Currently this is implemented in various places in usually not very
efficient ways, so provide a generic helper instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250507120451.4000627-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h