lightnvm: use system block for mm initialization
authorMatias Bjørling <m@bjorling.me>
Tue, 12 Jan 2016 06:49:38 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:18 +0000 (08:21 -0700)
commitb769207678176d590ea61ce7a64c9100925668b7
tree74cd968a5a847b6d74fbf42a9b76ce0826ca8eda
parent5569615424613aa006005f18b03a3a12738a47d7
lightnvm: use system block for mm initialization

Use system block information to register the appropriate media manager.
This enables the LightNVM subsystem to instantiate a media manager
selected by the user, instead of relying on automatic detection by each
media manager loaded in the kernel.

A device must now be initialized before it can proceed to initialize its
media manager. Upon initialization, the configured media manager is
automatically initialized as well.

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