]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc4b19a835a3d65eb1cbac9a003c8fffb966355e
treebaaa2c9770abd1b548fa14e4ad1259b4dfd1a96c
parent4c1b7094df4f2473876c3db36c18b24e9a86f1fc
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