WSL2-Linux-Kernel/drivers/block
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
..
aoe aoe: Avoid flush_scheduled_work() usage 2022-05-01 06:41:41 -06:00
drbd drbd: Return true/false (not 1/0) from bool functions 2022-04-17 19:54:24 -06:00
mtip32xx block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
null_blk block: null_blk: Fix null_zone_write() 2022-06-02 07:11:28 -06:00
paride Char/Misc and other driver changes for 5.17-rc1 2022-01-14 16:02:28 +01:00
rnbd block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
xen-blkback xen-blkback: use bdev_discard_alignment 2022-05-04 05:24:40 -06:00
zram Yang Shi has improved the behaviour of khugepaged collapsing of readonly 2022-05-26 12:32:41 -07:00
Kconfig floppy: disable FDRAWCMD by default 2022-04-27 09:41:54 -07:00
Makefile
amiflop.c
ataflop.c block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
brd.c brd: remove brd_devices_mutex mutex 2022-01-17 07:19:40 -07:00
floppy.c floppy: use a statically allocated error counter 2022-05-08 10:01:48 -07:00
loop.c block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
n64cart.c n64cart: convert bi_disk to bi_bdev->bd_disk fix build 2022-03-21 06:34:45 -06:00
nbd.c nbd: use pr_err to output error message 2022-05-27 20:39:33 -06:00
pktcdvd.c for-5.19/block-2022-05-22 2022-05-23 13:56:39 -07:00
ps3disk.c
ps3vram.c
rbd.c A big pile of assorted fixes and improvements for the filesystem with 2022-06-02 08:59:39 -07:00
rbd_types.h
sunvdc.c block: remove genhd.h 2022-02-02 07:49:59 -07:00
swim.c
swim3.c
swim_asm.S
sx8.c block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
virtio_blk.c block: simplify disk shutdown 2022-06-28 06:30:26 -06:00
xen-blkfront.c xen-blkfront: Handle NULL gendisk 2022-06-21 16:36:09 +02:00
z2ram.c block: simplify disk shutdown 2022-06-28 06:30:26 -06:00