diff options
author | Matias Bjørling <m@bjorling.me> | 2016-09-16 15:25:06 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-21 16:56:16 +0300 |
commit | b21d5b301794ae332eaa6e177d71fe8b77d3664c (patch) | |
tree | 338c8338e49341229936f0a38c1d58841f664ff6 /include/linux/blk-mq.h | |
parent | 9ae2d0aa5046c67dd37cf4b70998ad296e718835 (diff) | |
download | linux-b21d5b301794ae332eaa6e177d71fe8b77d3664c.tar.xz |
blk-mq: register device instead of disk
Enable devices without a gendisk instance to register itself with blk-mq
and expose the associated multi-queue sysfs entries.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 2575779cf13f..fbcfdf323243 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -175,8 +175,8 @@ enum { struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *); struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, struct request_queue *q); -int blk_mq_register_disk(struct gendisk *); -void blk_mq_unregister_disk(struct gendisk *); +int blk_mq_register_dev(struct device *, struct request_queue *); +void blk_mq_unregister_dev(struct device *, struct request_queue *); int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set); void blk_mq_free_tag_set(struct blk_mq_tag_set *set); |