PM: hibernate: split and simplify hib_submit_io
Split hib_submit_io into a sync and async version. The sync version is a small wrapper around bdev_rw_virt which implements all the logic to add a kernel direct mapping range to a bio and synchronously submits it, while the async version is slightly simplified using the bio_add_virt_nofail for adding the single range. Signed-off-by:Christoph Hellwig <hch@lst.de> Acked-by:
Rafael J. Wysocki <rafael@kernel.org> Reviewed-by:
Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20250507120451.4000627-13-hch@lst.de Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
Please sign in to comment