]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: prematurely activate nvm_dev
authorMatias Bjørling <m@bjorling.me>
Mon, 16 Nov 2015 14:34:42 +0000 (15:34 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 16 Nov 2015 22:20:31 +0000 (15:20 -0700)
commitca6c86d7ea7754bccce5033a73d20c1dcd026d52
tree2adb53a55864f731868a7641d8290139f29dd389
parentfc25c51462313f1bc05098cddf946605b52f3455
lightnvm: prematurely activate nvm_dev

We register with nvm_devices when there registration can still fail.
Move the final registration at the end of the nvm_register function
to make sure we are fully registered when added to the nvm_devices list.

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