From: Ming Lei Date: Tue, 1 Mar 2022 12:27:28 +0000 (+0200) Subject: block: move rq_qos_exit() into disk_release() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ffreeze-for-next;p=users%2Fhch%2Fblock.git block: move rq_qos_exit() into disk_release() There can't be FS IO in disk_release(), so it is safe to move rq_qos_exit() there. Signed-off-by: Ming Lei --- diff --git a/block/genhd.c b/block/genhd.c index ec4c5e9c98a1..56aa2a459fed 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -641,7 +641,6 @@ void del_gendisk(struct gendisk *disk) blk_mq_freeze_queue_wait(q); - rq_qos_exit(q); blk_sync_queue(q); blk_flush_integrity(); /* @@ -1133,7 +1132,7 @@ static void disk_release_mq(struct request_queue *q) elevator_exit(q); mutex_unlock(&q->sysfs_lock); } - + rq_qos_exit(q); __blk_mq_unfreeze_queue(q, true); }