diff options
| author | Christoph Hellwig <hch@lst.de> | 2020-06-27 09:31:46 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 10:18:28 +0200 |
| commit | d0e40e510aa7f7772b2ce39d42ad6b6dbf458402 (patch) | |
| tree | 904555efe442bb1ae51988f5ee475b8d45d5bfee /drivers/firmware | |
| parent | 0ff9fce4abee6efd3061216047b27100afe52140 (diff) | |
| download | linux-d0e40e510aa7f7772b2ce39d42ad6b6dbf458402.tar.gz linux-d0e40e510aa7f7772b2ce39d42ad6b6dbf458402.tar.bz2 linux-d0e40e510aa7f7772b2ce39d42ad6b6dbf458402.zip | |
dm: use bio_uninit instead of bio_disassociate_blkg
[ Upstream commit 382761dc6312965a11f82f2217e16ec421bf17ae ]
bio_uninit is the proper API to clean up a BIO that has been allocated
on stack or inside a structure that doesn't come from the BIO allocator.
Switch dm to use that instead of bio_disassociate_blkg, which really is
an implementation detail. Note that the bio_uninit calls are also moved
to the two callers of __send_empty_flush, so that they better pair with
the bio_init calls used to initialize them.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions
