Re: [PATCH 06/19] block: add an optional probe callback to major_names

Hannes Reinecke
2020-09-04T10:21:10Z

On 9/3/20 10:01 AM, Christoph Hellwig wrote:
> 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>
> ---
> block/genhd.c | 21 ++++++++++++++++++---
> include/linux/genhd.h | 5 ++++-
> 2 files changed, 22 insertions(+), 4 deletions(-)
> Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer