]> www.infradead.org Git - users/hch/block.git/commit
block: add an optional probe callback to major_names
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Aug 2020 15:55:44 +0000 (17:55 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 14 Nov 2020 17:26:33 +0000 (18:26 +0100)
commit037701af2de233a46c26483ef1ae46aad3359ddc
tree9169dc0e076dc50f70758e2c8608067f968d7880
parentb93b80d88692fa08b543a3913f8799ea53706d8b
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>
block/genhd.c
include/linux/genhd.h