]> 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)
commita8fba4406559299e5b9dc4c886e30333e958ce7c
tree4ac3051e9a30f3628beea499cd88a7647c33e08a
parent9540785257a40752861587b917dc006611bc3541
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