]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: fix media mgr registration
authorMatias Bjørling <m@bjorling.me>
Sun, 6 Dec 2015 10:25:49 +0000 (11:25 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 7 Dec 2015 16:14:19 +0000 (09:14 -0700)
commit543f1ee55525a763266df2c40a7e900ad8b02047
tree2d7eda1eb035ebbe5c1e6cd92b5f30f961c1864f
parent80b1c23e501bd1815fbeb807ed4869688b4c4067
lightnvm: fix media mgr registration

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: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c