Christoph Hellwig 6f8191fdf4 block: simplify disk shutdown
Set the queue dying flag and call blk_mq_exit_queue from del_gendisk for
all disks that do not have separately allocated queues, and thus remove
the need to call blk_cleanup_queue for them.

Rename blk_cleanup_disk to blk_mq_destroy_queue to make it clear that
this function is intended only for separately allocated blk-mq queues.

This saves an extra queue freeze for devices without a separately
allocated queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20220619060552.1850436-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-06-28 06:30:26 -06:00
..
2022-05-23 14:04:14 -07:00
2022-05-24 18:30:27 -07:00
2022-06-16 16:59:28 -06:00
2022-06-27 06:29:12 -06:00
2022-03-21 16:48:55 -07:00
2022-06-27 06:29:11 -06:00
2022-06-28 06:30:26 -06:00
2022-06-28 06:30:26 -06:00
2020-03-17 20:55:21 +01:00
2022-06-28 06:30:26 -06:00
2022-06-28 06:30:26 -06:00
2022-03-31 12:58:38 -06:00
2022-03-24 19:37:53 -07:00
2022-06-28 06:30:26 -06:00
2022-06-28 06:30:26 -06:00
2021-09-14 00:22:15 -04:00
2022-02-02 07:49:59 -07:00
2022-03-21 16:48:55 -07:00
2021-10-18 06:17:01 -06:00
2022-06-27 06:29:11 -06:00
2022-06-28 06:30:26 -06:00
2022-03-07 12:48:35 -07:00
2022-02-02 07:49:59 -07:00
2022-03-07 12:48:35 -07:00