diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-15 22:10:48 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-16 15:19:56 -0700 |
commit | 7b5865831c1003122f737df5e16adaa583f1a595 (patch) | |
tree | 03bd01348e6c4cf32ce675ea24fbb84d2e877a2a /lib/lockref.c | |
parent | b9a785d2dc6567b2fd9fc60057a6a945a276927a (diff) | |
download | lwn-7b5865831c1003122f737df5e16adaa583f1a595.tar.gz lwn-7b5865831c1003122f737df5e16adaa583f1a595.zip |
dm: cleanup close_table_device
Take the list unlink and free into close_table_device so that no half
torn down table_devices exist. Also remove the check for a NULL bdev
as that can't happen - open_table_device never adds a table_device to
the list that does not have a valid block_device.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
Link: https://lore.kernel.org/r/20221115141054.1051801-5-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions