diff options
author | Javier González <jg@lightnvm.io> | 2017-04-15 20:55:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-16 10:06:25 -0600 |
commit | 4af3f75d7992dd0dc49da95fbc039fa3806fba4f (patch) | |
tree | c180773ceb2e5e1b3ca1edd06a9cc84c41525f3d /drivers/lightnvm/rrpc.c | |
parent | e85292feb98ca8ba4dcd6b5d33e1214a4b54512d (diff) | |
download | op-kernel-dev-4af3f75d7992dd0dc49da95fbc039fa3806fba4f.zip op-kernel-dev-4af3f75d7992dd0dc49da95fbc039fa3806fba4f.tar.gz |
lightnvm: allow to init targets on factory mode
Target initialization has two responsibilities: creating the target
partition and instantiating the target. This patch enables to create a
factory partition (e.g., do not trigger recovery on the given target).
This is useful for target development and for being able to restore the
device state at any moment in time without requiring a full-device
erase.
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/rrpc.c')
-rw-r--r-- | drivers/lightnvm/rrpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index a8acf9e..5dba544 100644 --- a/drivers/lightnvm/rrpc.c +++ b/drivers/lightnvm/rrpc.c @@ -1506,7 +1506,8 @@ err: static struct nvm_tgt_type tt_rrpc; -static void *rrpc_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk) +static void *rrpc_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk, + int flags) { struct request_queue *bqueue = dev->q; struct request_queue *tqueue = tdisk->queue; |