brd: use __register_blkdev to allocate devices on demand
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:32 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commit7cc178a6b994b7c994f1811c4b9fedc015ee0c9e
treeff7e7a98c6d3965d97a442c7d45d6516822b3d68
parent996e509bbc956d60f761dc955f5c5131e9a8fb13
brd: use __register_blkdev to allocate devices on demand

Use the simpler mechanism attached to major_name to allocate a brd device
when a currently unregistered minor is accessed.

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