linux-stable/drivers/cdrom
Christoph Hellwig d27b66257d block: simplify disk shutdown
[ Upstream commit 6f8191fdf4 ]

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>
Stable-dep-of: 8fe4ce5836 ("scsi: core: Fix a use-after-free")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 11:32:01 +02:00
..
Makefile
cdrom.c cdrom: remove obsolete TODO list 2022-05-15 18:31:28 -06:00
gdrom.c block: simplify disk shutdown 2022-09-28 11:32:01 +02:00