]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitedad2e6606ee62dd7dfc5b001fae39c5c8015a55
tree2adb53a55864f731868a7641d8290139f29dd389
parent4264c980e3e9bb904b7f41dc9c64786cc5466bee
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