lightnvm: introduce helpers for generic ops in rrpc

Avoid calling media manager and device-specific operations directly from
rrpc. Create helper functions on lightnvm's core instead.

Signed-off-by: Javier González <javier@cnexlabs.com>

Made it work with null_blk as well.
Signed-off-by: Matias Bjørling <m@bjorling.me>

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Javier González 2016-11-28 22:39:11 +01:00 committed by Jens Axboe
parent 8e53624d44
commit 959e911b31
4 changed files with 35 additions and 19 deletions

View file

@ -320,10 +320,7 @@ struct nvm_tgt_dev {
struct nvm_id identity;
struct request_queue *q;
struct nvmm_type *mt;
struct nvm_dev_ops *ops;
void *parent;
struct nvm_dev *parent;
void *map;
};