block: rework requesting modules for unclaimed devices
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:27 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commitbd8eff3ba2caca53ea72cf3cc87a7797771dd7d2
treef37022c89b978004a95b3f454b098d8898b42ade
parente49fbbbf0aa14f011ab037086f37f58bd058a6ee
block: rework requesting modules for unclaimed devices

Instead of reusing the ranges in bdev_map, add a new helper that is
called if no ranges was found.  This is a first step to unpeel and
eventually remove the complex ranges structure.

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