]> www.infradead.org Git - users/hch/misc.git/commit
PM: hibernate: split and simplify hib_submit_io
authorChristoph Hellwig <hch@lst.de>
Sun, 13 Apr 2025 06:15:09 +0000 (08:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2025 19:03:20 +0000 (14:03 -0500)
commit57086a7abdef5726d86b76f17352b19c4dae86a1
tree61c8ac20be50935b3a6b595884c65f69dcecc3bc
parentecc59b7a9523bfbd95bc10aa9b8199279ab40fa6
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>
kernel/power/swap.c