]> www.infradead.org Git - users/hch/block.git/commit
brd: convert to blk_alloc_disk/blk_cleanup_disk
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Apr 2021 14:05:36 +0000 (16:05 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 May 2021 16:44:36 +0000 (18:44 +0200)
commit2a9aa84f49ae2af9709b8ccb87d1509f08f562dc
tree33cbf7e0ba37baa0d11345b8e7b9d3ed57bcdf2b
parent9644156cea0d9783e4c0c364e1aa20003c25432c
brd: convert to blk_alloc_disk/blk_cleanup_disk

Convert the brd driver to use the blk_alloc_disk and blk_cleanup_disk
helpers to simplify gendisk and request_queue allocation.  This also
allows to remove the request_queue pointer in struct request_queue,
and to simplify the initialization as blk_cleanup_disk can be called
on any disk returned from blk_alloc_disk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/brd.c