diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-01-12 17:32:21 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-01-29 21:44:55 +0300 |
commit | c12c9a3c3860c76ba273798c0c34c6f1294cc759 (patch) | |
tree | 7743e38d1794d2fb5709d4c22909b0fc3dcb63c8 /drivers/md/dm-rq.c | |
parent | ac514ffc968bf14649dd0e048447dc966ee49555 (diff) | |
download | linux-c12c9a3c3860c76ba273798c0c34c6f1294cc759.tar.xz |
dm: various cleanups to md->queue initialization code
Also, add dm_sysfs_init() error handling to dm_create().
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-rq.c')
-rw-r--r-- | drivers/md/dm-rq.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index b78ff6921cfb..c59c59cfd2a5 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -704,7 +704,6 @@ int dm_old_init_request_queue(struct mapped_device *md, struct dm_table *t) /* disable dm_old_request_fn's merge heuristic by default */ md->seq_rq_merge_deadline_usecs = 0; - dm_init_normal_md_queue(md); blk_queue_softirq_done(md->queue, dm_softirq_done); /* Initialize the request-based DM worker thread */ @@ -814,7 +813,6 @@ int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t) err = PTR_ERR(q); goto out_tag_set; } - dm_init_md_queue(md); /* backfill 'mq' sysfs registration normally done in blk_register_queue */ err = blk_mq_register_dev(disk_to_dev(md->disk), q); |