block: add an optional probe callback to major_names
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:28 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commita160c6159d4a0cf82f28bc1658a958e278ec3688
tree2026376f6fe335c63633b974f34e6826e81f4e3e
parentbd8eff3ba2caca53ea72cf3cc87a7797771dd7d2
block: add an optional probe callback to major_names

Add a callback to the major_names array that allows a driver to override
how to probe for dev_t that doesn't currently have a gendisk registered.
This will help separating the lookup of the gendisk by dev_t vs probe
action for a not currently registered dev_t.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
include/linux/genhd.h