]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16eb2740c6ff58e6e0a86c74ae1e09af57809ab3
treeafcf84bd454f45325e0a4856006349bce5f23355
parent89e7dabdba70b3dd671b350918d25624d40fc621
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