diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 12:41:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 20:50:43 +0300 |
commit | 89f871af1b26d98d983cba7ed0e86effa45ba5f8 (patch) | |
tree | ec9e14d1842a1777830e3878dcffb054552c5714 /drivers/md/dm-rq.c | |
parent | ba30585936b0b88f0fb2b19be279b346a6cc87eb (diff) | |
download | linux-89f871af1b26d98d983cba7ed0e86effa45ba5f8.tar.xz |
dm: delay registering the gendisk
device mapper is currently the only outlier that tries to call
register_disk after add_disk, leading to fairly inconsistent state
of these block layer data structures. Instead change device-mapper
to just register the gendisk later now that the holder mechanism
can cope with that.
Note that this introduces a user visible change: the dm kobject is
now only visible after the initial table has been loaded.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20210804094147.459763-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-rq.c')
-rw-r--r-- | drivers/md/dm-rq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 0dbd48cbdff9..5b95eea517d1 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -559,7 +559,6 @@ int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t) err = blk_mq_init_allocated_queue(md->tag_set, md->queue); if (err) goto out_tag_set; - elevator_init_mq(md->queue); return 0; out_tag_set: |