diff options
author | Christoph Hellwig <hch@lst.de> | 2021-05-21 07:50:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-01 07:42:23 -0600 |
commit | 7f9b348cb5e94259acdcbafbcaed55d3bb515304 (patch) | |
tree | fd2d3603f50a4858463e1e127e8d96a0536ddffe /Kbuild | |
parent | f525464a8000f092c20b00eead3eaa9d849c599e (diff) | |
download | lwn-7f9b348cb5e94259acdcbafbcaed55d3bb515304.tar.gz lwn-7f9b348cb5e94259acdcbafbcaed55d3bb515304.zip |
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>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210521055116.1053587-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions