]> git.baikalelectronics.ru Git - kernel.git/commit
dm-snap: use blkdev_issue_flush instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:55 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commit89e7dabdba70b3dd671b350918d25624d40fc621
treea1b56a97eb85d8f74e95493dc92ddb0bdef5c132
parentaf85cc4185292d5410a273b72e77b448e34b324e
dm-snap: use blkdev_issue_flush instead of open coding it

Use blkdev_issue_flush, which uses an on-stack bio instead of an
opencoded version with a bio embedded into struct dm_snapshot.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220124091107.642561-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-snap.c