diff options
author | Christoph Hellwig | 2021-05-21 07:50:55 +0200 |
---|---|---|
committer | Jens Axboe | 2021-06-01 07:42:23 -0600 |
commit | f525464a8000f092c20b00eead3eaa9d849c599e (patch) | |
tree | 6a05793a03d8cf7c52635e886f73203633329cbe /usr | |
parent | 958229a7c55f219b1cff99f939dabbc1b6ba7161 (diff) |
block: add blk_alloc_disk and blk_cleanup_disk APIs
Add two new APIs to allocate and free a gendisk including the
request_queue for use with BIO based drivers. This is to avoid
boilerplate code in drivers.
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-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions