dm-thin: use blkdev_issue_flush instead of open coding it
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:56 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commit28d7d128aad5cd2178b158900d58365d1fd3de94
treeafcf84bd454f45325e0a4856006349bce5f23355
parenteba33b8ef1b90d8996eceb0569c06a4f784ef2b5
dm-thin: 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 pool.

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