linux-stable/include
Christoph Hellwig 6c60ff048c block: prevent block device lookups at the beginning of del_gendisk
As an artifact of how gendisk lookup used to work in earlier kernels,
GENHD_FL_UP is only cleared very late in del_gendisk, and a global lock
is used to prevent opens from succeeding while del_gendisk is tearing
down the gendisk.  Switch to clearing the flag early and under bd_mutex
so that callers can use bd_mutex to stabilize the flag, which removes
the need for the global mutex.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20210514131842.1600568-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-05-20 07:59:35 -06:00
..
acpi
asm-generic - removed get_fs/set_fs 2021-04-29 11:28:08 -07:00
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux block: prevent block device lookups at the beginning of del_gendisk 2021-05-20 07:59:35 -06:00
math-emu
media
memory
misc
net
pcmcia
ras
rdma
scsi
soc
sound
target
trace The x86 MM changes in this cycle were: 2021-04-29 11:41:43 -07:00
uapi block: uapi: fix comment about block device ioctl 2021-05-10 09:26:18 -06:00
vdso
video
xen