Skip to content

Commit 58b63e0

Browse files
Guoqing Jiangaxboe
authored andcommitted
pd: fix order of cleaning up the queue and freeing the tagset
We must release the queue before freeing the tagset. Fixes: 262d431 ("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>
1 parent a731763 commit 58b63e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/block/paride

drivers/block/paride/pd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ static void __exit pd_exit(void)
10141014
if (p) {
10151015
disk->gd = NULL;
10161016
del_gendisk(p);
1017-
blk_mq_free_tag_set(&disk->tag_set);
10181017
blk_cleanup_disk(p);
1018+
blk_mq_free_tag_set(&disk->tag_set);
10191019
pi_release(disk->pi);
10201020
}
10211021
}

0 commit comments

Comments
 (0)