• Matias Bjørling's avatar
    lightnvm: fix media mgr registration · 762796bc
    Matias Bjørling authored
    This patch fixes two issues during media manager registration.
    
    1. The ppa pool can be used at media manager registration. Allocate the
    ppa pool before that.
    
    2. If a media manager can't be found, this should not lead to the
    device being unallocated. A media manager can be registered later, that
    can manage the device. Only warn if a media manager fails
    initialization.
    Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    762796bc
core.c 17.9 KB