]> git.karo-electronics.de Git - linux-beck.git/commit
lightnvm: add a bitmap of luns
authorWenwei Tao <ww.tao0320@gmail.com>
Thu, 3 Mar 2016 14:06:38 +0000 (15:06 +0100)
committerJens Axboe <axboe@fb.com>
Sat, 19 Mar 2016 01:10:38 +0000 (18:10 -0700)
commitda1e284919b0b99c5bf0618b6c98cbaf2c17e62e
treeef1d8fe8821376dd57fbd4d3319a747841df38e6
parent4c9dacb82d5aa36aa2568df60d897f2eb3d8819b
lightnvm: add a bitmap of luns

Add a bitmap of luns to indicate the status
of luns: inuse/available. When create targets
do the necessary check to avoid allocating luns
that are already allocated.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Freed dev->lun_map if nvm_core_init later failed in the init process.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/lightnvm/gennvm.c
drivers/lightnvm/rrpc.c
include/linux/lightnvm.h