linux/block
Christoph Hellwig 9f2869921f block: refine the disk_live check in del_gendisk
hidden gendisks will never be marked live.

Fixes: 40b3a52ffc ("block: add a sanity check for a live disk in del_gendisk")
Reported-by: Bruno Goncalves <bgoncalv@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210824144310.1487816-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-08-24 10:10:08 -06:00
..
partitions partitions/efi: Support non-standard GPT location 2021-08-24 10:09:06 -06:00
Kconfig block: make the block holder code optional 2021-08-09 11:50:42 -06:00
Kconfig.iosched
Makefile block: make the block holder code optional 2021-08-09 11:50:42 -06:00
badblocks.c
bfq-cgroup.c
bfq-iosched.c block: add an explicit ->disk backpointer to the request_queue 2021-08-23 12:54:31 -06:00
bfq-iosched.h block: Introduce IOPRIO_NR_LEVELS 2021-08-18 07:21:12 -06:00
bfq-wf2q.c block: Introduce IOPRIO_NR_LEVELS 2021-08-18 07:21:12 -06:00
bio-integrity.c block: use bvec_virt in bio_integrity_{process,free} 2021-08-16 10:50:32 -06:00
bio.c bio: fix page leak bio_add_hw_page failure 2021-08-24 08:04:58 -06:00
blk-cgroup-rwstat.c
blk-cgroup-rwstat.h
blk-cgroup.c block: add an explicit ->disk backpointer to the request_queue 2021-08-23 12:54:31 -06:00
blk-core.c block: move the bdi from the request_queue to the gendisk 2021-08-09 11:53:23 -06:00
blk-crypto-fallback.c
blk-crypto-internal.h
blk-crypto.c
blk-exec.c block: return errors from blk_execute_rq() 2021-06-30 15:35:45 -06:00
blk-flush.c
blk-integrity.c block: return errors from blk_integrity_add 2021-08-23 12:55:45 -06:00
blk-ioc.c
blk-iocost.c blk-cgroup: stop using seq_get_buf 2021-08-16 10:53:01 -06:00
blk-iolatency.c blk-cgroup: stop using seq_get_buf 2021-08-16 10:53:01 -06:00
blk-ioprio.c
blk-ioprio.h
blk-lib.c
blk-map.c block: use memcpy_from_bvec in bio_copy_kern_endio_read 2021-08-02 13:37:28 -06:00
blk-merge.c blk-throtl: optimize IOPS throttle for large IO scenarios 2021-08-14 19:14:56 -06:00
blk-mq-cpumap.c
blk-mq-debugfs-zoned.c
blk-mq-debugfs.c
blk-mq-debugfs.h
blk-mq-pci.c
blk-mq-rdma.c
blk-mq-sched.c blk-mq-sched: Fix blk_mq_sched_alloc_tags() error handling 2021-07-27 16:44:38 -06:00
blk-mq-sched.h
blk-mq-sysfs.c block: remove blk-mq-sysfs dead code 2021-08-02 13:37:29 -06:00
blk-mq-tag.c
blk-mq-tag.h
blk-mq-virtio.c
blk-mq.c block: add an explicit ->disk backpointer to the request_queue 2021-08-23 12:54:31 -06:00
blk-mq.h
blk-pm.c
blk-pm.h
blk-rq-qos.c
blk-rq-qos.h
blk-settings.c block: add an explicit ->disk backpointer to the request_queue 2021-08-23 12:54:31 -06:00
blk-stat.c
blk-stat.h
blk-sysfs.c block: call blk_register_queue earlier in device_add_disk 2021-08-23 12:55:45 -06:00
blk-throttle.c blk-throtl: optimize IOPS throttle for large IO scenarios 2021-08-14 19:14:56 -06:00
blk-timeout.c
blk-wbt.c block: add an explicit ->disk backpointer to the request_queue 2021-08-23 12:54:31 -06:00
blk-wbt.h
blk-zoned.c
blk.h block: return errors from disk_alloc_events 2021-08-23 12:55:45 -06:00
bounce.c block: use memcpy_from_bvec in __blk_queue_bounce 2021-08-02 13:37:28 -06:00
bsg-lib.c block-5.14-2021-07-08 2021-07-09 12:05:33 -07:00
bsg.c block-5.14-2021-07-08 2021-07-09 12:05:33 -07:00
disk-events.c block: return errors from disk_alloc_events 2021-08-23 12:55:45 -06:00
elevator.c block: return ELEVATOR_DISCARD_MERGE if possible 2021-08-09 14:37:47 -06:00
genhd.c block: refine the disk_live check in del_gendisk 2021-08-24 10:10:08 -06:00
holder.c block: add back the bd_holder_dir reference in bd_link_disk_holder 2021-08-20 21:14:26 -06:00
ioctl.c block: pass a gendisk to bdev_resize_partition 2021-08-12 10:31:36 -06:00
ioprio.c block: fix default IO priority handling 2021-08-18 07:23:15 -06:00
keyslot-manager.c
kyber-iosched.c
mq-deadline-cgroup.c blk-cgroup: stop using seq_get_buf 2021-08-16 10:53:01 -06:00
mq-deadline-cgroup.h
mq-deadline-main.c block: return ELEVATOR_DISCARD_MERGE if possible 2021-08-09 14:37:47 -06:00
opal_proto.h
scsi_ioctl.c block-5.14-2021-07-08 2021-07-09 12:05:33 -07:00
sed-opal.c
t10-pi.c block: use bvec_kmap_local in t10_pi_type1_{prepare,complete} 2021-08-02 13:37:28 -06:00