diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:41:43 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 11:50:42 -0600 |
commit | d626338735909bc2b2e7cafc332f44ed41cfdeee (patch) | |
tree | 44449bb3fd601e4fbd630928ce20284e76469e3e /drivers/md | |
parent | 0dbcfe247f22a6d73302dfa691c48b3c14d31c4c (diff) | |
download | linux-d626338735909bc2b2e7cafc332f44ed41cfdeee.tar.bz2 |
block: support delayed holder registration
device mapper needs to register holders before it is ready to do I/O.
Currently it does so by registering the disk early, which can leave
the disk and queue in a weird half state where the queue is registered
with the disk, except for sysfs and the elevator. And this state has
been a bit promlematic before, and will get more so when sorting out
the responsibilities between the queue and the disk.
Support registering holders on an initialized but not registered disk
instead by delaying the sysfs registration until the disk is registered.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20210804094147.459763-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions