commit | edad2e6606ee62dd7dfc5b001fae39c5c8015a55 | [log] [tgz] |
---|---|---|
author | Matias Bjørling <m@bjorling.me> | Mon Nov 16 15:34:42 2015 +0100 |
committer | Jens Axboe <axboe@fb.com> | Mon Nov 16 15:20:31 2015 -0700 |
tree | 2adb53a55864f731868a7641d8290139f29dd389 | |
parent | 4264c980e3e9bb904b7f41dc9c64786cc5466bee [diff] |
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>