Files
linux/include/linux
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
..
2021-04-06 21:04:36 -07:00
2021-04-14 16:30:30 +03:00
2021-05-08 21:49:48 -06:00
2021-02-26 09:41:03 -08:00
2021-04-08 16:04:20 -07:00
2021-04-08 16:04:20 -07:00
2021-04-08 16:04:20 -07:00
2021-03-22 03:57:39 +01:00
2021-04-12 15:04:23 +02:00
2021-04-08 16:04:20 -07:00
2021-03-22 04:23:14 +01:00
2021-02-26 09:41:02 -08:00
2021-02-26 09:41:03 -08:00
2021-03-13 11:27:30 -08:00
2021-04-08 16:04:20 -07:00
2021-04-06 08:34:39 +02:00
2021-04-21 10:24:41 -05:00
2021-02-26 09:40:59 -08:00
2021-03-10 09:34:06 +01:00
2021-04-08 16:04:20 -07:00
2021-03-06 12:40:22 +01:00
2021-02-26 09:41:03 -08:00
2021-03-22 02:45:52 +01:00
2021-03-02 17:25:46 -07:00
2021-03-17 15:51:17 +01:00
2021-03-10 09:34:06 +01:00
2021-04-15 10:32:17 +02:00
2021-04-26 22:55:12 +01:00
2021-04-09 16:00:00 +02:00
2021-03-22 15:02:14 +01:00
2021-03-30 13:42:33 -04:00