diff options
author | Matias Bjørling | 2016-09-16 14:25:06 +0200 |
---|---|---|
committer | Jens Axboe | 2016-09-21 07:56:16 -0600 |
commit | b21d5b301794ae332eaa6e177d71fe8b77d3664c (patch) | |
tree | 338c8338e49341229936f0a38c1d58841f664ff6 /drivers | |
parent | 9ae2d0aa5046c67dd37cf4b70998ad296e718835 (diff) |
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 'drivers')
-rw-r--r-- | drivers/md/dm-rq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 1ca7463e8bb2..ee48230a2952 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -955,7 +955,7 @@ int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t) dm_init_md_queue(md); /* backfill 'mq' sysfs registration normally done in blk_register_queue */ - blk_mq_register_disk(md->disk); + blk_mq_register_dev(disk_to_dev(md->disk), q); return 0; |