]> git.baikalelectronics.ru Git - kernel.git/commit
pd: fix order of cleaning up the queue and freeing the tagset
authorGuoqing Jiang <jiangguoqing@kylinos.cn>
Tue, 6 Jul 2021 01:07:34 +0000 (09:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Jul 2021 15:29:22 +0000 (09:29 -0600)
commit1735c5dd5649b215d96443934d8c87b6b1177eb1
tree5a633733132a102b4f5c0a891b247c12e194664c
parentf2870c66b8c72cc2e0baa3c7ecb71a7830662ccb
pd: fix order of cleaning up the queue and freeing the tagset

We must release the queue before freeing the tagset.

Fixes: f8544c603f7b ("pd: use blk_mq_alloc_disk and blk_cleanup_disk")
Signed-off-by: Guoqing Jiang <jiangguoqing@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210706010734.1356066-1-guoqing.jiang@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/paride/pd.c