On 3/4/22 08:03, Christoph Hellwig wrote:
From: Ming Lei <ming.lei@xxxxxxxxxx> There can't be FS IO in disk_release(), so move blk_exit_queue() there. We still need to freeze queue here since the request is freed after the bio is completed and passthrough request rely on scheduler tags as well. The disk can be released before or after queue is cleaned up, and we have to free the scheduler request pool before blk_cleanup_queue returns, while the static request pool has to be freed before exiting the I/O scheduler.
The above explains why it is safe to make this change but not why this change is made. Please add an explanation of why this change is made. Anyway:
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>