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:

committed by
Jens Axboe

parent
8e53624d44
commit
959e911b31
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user