]> 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)
commitdfa74a568df60d2d0c0930064b45590431c6b62b
tree2d7eda1eb035ebbe5c1e6cd92b5f30f961c1864f
parent2b6556abf8849df0836647cdb29ecfc4a76f4f5d
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