loop: use __register_blkdev to allocate devices on demand
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:33 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commit8410d38c255200f71b67ddb37021c36273e7e78c
treebaaa2c9770abd1b548fa14e4ad1259b4dfd1a96c
parent7cc178a6b994b7c994f1811c4b9fedc015ee0c9e
loop: 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/loop.c