[PATCH V2 12/13] block: move rq_qos_exit() into disk_release()
Ming Lei
ming.lei at redhat.com
Sat Jan 22 03:10:53 PST 2022
There can't be FS IO in disk_release(), so it is safe to move rq_qos_exit()
there.
Signed-off-by: Ming Lei <ming.lei at redhat.com>
---
block/genhd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/genhd.c b/block/genhd.c
index f1aef5d13afa..2f0e92cdcf6d 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -622,7 +622,6 @@ void del_gendisk(struct gendisk *disk)
blk_mq_freeze_queue_wait(q);
- rq_qos_exit(q);
blk_sync_queue(q);
blk_flush_integrity();
/*
@@ -1125,6 +1124,7 @@ static void disk_release_queue(struct gendisk *disk)
*/
blk_mq_freeze_queue(q);
blk_exit_queue(q);
+ rq_qos_exit(q);
__blk_mq_unfreeze_queue(q, true);
}
--
2.31.1
More information about the Linux-nvme
mailing list