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

From: Hannes Reinecke
Date: Fri Sep 04 2020 - 06:21:04 EST


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@xxxxxx>
---
block/genhd.c | 21 ++++++++++++++++++---
include/linux/genhd.h | 5 ++++-
2 files changed, 22 insertions(+), 4 deletions(-)
Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

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