linux/drivers/lightnvm
Javier González a7c9e9109c lightnvm: pass flag on graceful teardown to targets
If the namespace is unregistered before the LightNVM target is removed
(e.g., on hot unplug) it is too late for the target to store any metadata
on the device - any attempt to write to the device will fail. In this
case, pass on a "gracefull teardown" flag to the target to let it know
when this happens.

In the case of pblk, we pad the open line (close all open chunks) to
improve data retention. In the event of an ungraceful shutdown, avoid
this part and just clean up.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-06-01 07:43:53 -06:00
..
core.c lightnvm: pass flag on graceful teardown to targets 2018-06-01 07:43:53 -06:00
Kconfig lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm: pblk: export write amplification counters to sysfs 2018-03-29 17:29:09 -06:00
pblk-core.c lightnvm: pass flag on graceful teardown to targets 2018-06-01 07:43:53 -06:00
pblk-gc.c lightnvm: pass flag on graceful teardown to targets 2018-06-01 07:43:53 -06:00
pblk-init.c lightnvm: pass flag on graceful teardown to targets 2018-06-01 07:43:53 -06:00
pblk-map.c lightnvm: pblk: fail gracefully on line alloc. failure 2018-06-01 07:43:53 -06:00
pblk-rb.c lightnvm: pblk: warn in case of corrupted write buffer 2018-06-01 07:43:53 -06:00
pblk-read.c lightnvm: pblk: remove unnecessary indirection 2018-06-01 07:43:53 -06:00
pblk-recovery.c lightnvm: convert to bioset_init()/mempool_init() 2018-05-30 15:33:32 -06:00
pblk-rl.c lightnvm: simplify geometry structure 2018-03-29 17:29:09 -06:00
pblk-sysfs.c lightnvm: pblk: implement 2.0 support 2018-03-29 17:29:09 -06:00
pblk-write.c lightnvm: convert to bioset_init()/mempool_init() 2018-05-30 15:33:32 -06:00
pblk.h lightnvm: pass flag on graceful teardown to targets 2018-06-01 07:43:53 -06:00