]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: add initialization check
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:41 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
commitb5e063a2861a3af00fe3770e5fb85f936facbf42
tree461030bb83c92c026791b7db9de55e100d38aa0c
parentee8d5c1ad54e48ec44b6ae9cf91144fcab6ebf83
lightnvm: pblk: add initialization check

Add a sanity check to the pblk initialization sequence in order to
ensure that enough LUNs have been allocated to store the line metadata.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-init.c