lightnvm: remove gen_lun abstraction
authorJavier González <jg@lightnvm.io>
Mon, 28 Nov 2016 21:39:04 +0000 (22:39 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 29 Nov 2016 19:12:51 +0000 (12:12 -0700)
commitde93434fcf74d41754a48e45365a5914e00bc0be
tree9eae34dfc2ddf9fa9fad129fb78e1f00e90277ae
parent98379a12c54974ee5856dcf81781a5dc845505c3
lightnvm: remove gen_lun abstraction

The gen_lun abstraction in the generic media manager was conceived on
the assumption that a single target would instantiated on top of it.
This has complicated target design to implement multi-instances. Remove
this abstraction and move its logic to nvm_lun, which manages physical
lun geometry and operations.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/gennvm.c
drivers/lightnvm/gennvm.h
include/linux/lightnvm.h