]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e54d47ab083c5d02991bc691405a804733fbff
tree4ac3051e9a30f3628beea499cd88a7647c33e08a
parent00424520061d7b2f2b30c067f3ce38937bb3e7a9
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