diff --git a/block/blk-core.c b/block/blk-core.c index 06fb25bd24df5ec0709e4d4669c9489dcd7d5b73..5897e7bbbee33a14221045dd7831ef8e3562e1be 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -402,8 +402,6 @@ void blk_cleanup_queue(struct request_queue *q) */ blk_freeze_queue(q); - rq_qos_exit(q); - blk_queue_flag_set(QUEUE_FLAG_DEAD, q); /* for synchronous bio-based driver finish in-flight integrity i/o */ diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 169e63ee05cbe8280e9d9b527bac959acbefb567..8012a7e51788d0c81174678b632c77e8ef559d80 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -792,6 +792,8 @@ static void blk_release_queue(struct kobject *kobj) blk_free_queue_stats(q->stats); + rq_qos_exit(q); + blk_exit_queue(q); blk_queue_free_zone_bitmaps(q);