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-04-11 22:09:35 -04:00
2022-04-11 22:09:35 -04:00
2022-05-23 23:24:09 -04:00
2022-05-25 19:09:48 -07:00
2022-05-23 23:24:10 -04:00
2022-06-01 22:43:26 -04:00
2022-05-23 23:24:10 -04:00
2022-06-05 09:25:12 -07:00
2022-02-22 21:11:02 -05:00
2022-01-14 14:37:34 +01:00
2022-02-22 21:11:02 -05:00
2022-01-25 00:09:41 -05:00
2022-02-22 21:11:02 -05:00
2022-06-28 06:30:26 -06:00
2022-01-22 08:33:37 +02:00
2022-06-28 06:30:26 -06:00
2022-05-02 16:59:11 -04:00
2022-05-08 14:28:18 -04:00
2022-06-28 06:30:26 -06:00
2021-12-22 23:41:13 -05:00
2022-06-28 06:30:26 -06:00