lightnvm: allow to force mm initialization
authorMatias Bjørling <m@bjorling.me>
Thu, 4 Feb 2016 14:13:27 +0000 (15:13 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 4 Feb 2016 16:19:45 +0000 (09:19 -0700)
commitbf64318564c43385ffc3d3dfedab5287bdf3dfdd
tree4ac3051e9a30f3628beea499cd88a7647c33e08a
parent6dde1d6c9094a7c20a680aa2196ad6d032ec7ded
lightnvm: allow to force mm initialization

System block allows the device to initialize with its configured media
manager. The system blocks is written to disk, and read again when media
manager is determined. For this to work, the backend must store the
data. Device drivers, such as null_blk, does not have any backend
storage. This patch allows the media manager to be initialized without a
storage backend.

It also fix incorrect configuration of capabilities in null_blk, as it
does not support get/set bad block interface.

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