]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix error handling in __blk_mq_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Jul 2022 13:05:40 +0000 (15:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 16:59:02 +0000 (10:59 -0600)
commit628fe7f234e8c24bcd381f97e9a9445f94a64c0d
tree3b3159f26c2fa8841002648be5d01366b09b1923
parent805c1c087e93cf19b5989495442b6e50cd467935
blk-mq: fix error handling in __blk_mq_alloc_disk

To fully clean up the queue if the disk allocation fails we need to
call blk_mq_destroy_queue and not just blk_put_queue.

Fixes: 11c28a1a6c40 ("block: simplify disk shutdown")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220720130541.1323531-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c