Skip to content

Commit 5ca7546

Browse files
Ming Leiaxboe
authored andcommitted
block: move rq_qos_exit() into disk_release()
Keep all teardown of file system I/O related functionality in one place. There can't be file system I/O in disk_release(), so it is safe to move rq_qos_exit() there. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220308055200.735835-15-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2888307 commit 5ca7546

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

block/genhd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ void del_gendisk(struct gendisk *disk)
627627

628628
blk_mq_freeze_queue_wait(q);
629629

630-
rq_qos_exit(q);
631630
blk_sync_queue(q);
632631
blk_flush_integrity();
633632
/*
@@ -1119,7 +1118,7 @@ static void disk_release_mq(struct request_queue *q)
11191118
elevator_exit(q);
11201119
mutex_unlock(&q->sysfs_lock);
11211120
}
1122-
1121+
rq_qos_exit(q);
11231122
__blk_mq_unfreeze_queue(q, true);
11241123
}
11251124

0 commit comments

Comments
 (0)