diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:41:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 11:50:43 -0600 |
commit | 89f871af1b26d98d983cba7ed0e86effa45ba5f8 (patch) | |
tree | ec9e14d1842a1777830e3878dcffb054552c5714 /block/genhd.c | |
parent | ba30585936b0b88f0fb2b19be279b346a6cc87eb (diff) |
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 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions