diff options
author | Hans Holmberg | 2018-06-01 16:41:06 +0200 |
---|---|---|
committer | Jens Axboe | 2018-06-01 09:02:53 -0600 |
commit | 48b8d20895f8a489e1527e9bdc5e372808542fa3 (patch) | |
tree | 754ad9c349589759af22adad8286e7fa2b7095bc /init | |
parent | 6a3abf5beef6ae46381c1fb6976e6f313c40f0c1 (diff) |
lightnvm: pblk: garbage collect lines with failed writes
Write failures should not happen under normal circumstances,
so in order to bring the chunk back into a known state as soon
as possible, evacuate all the valid data out of the line and let the
fw judge if the block can be written to in the next reset cycle.
Do this by introducing a new gc list for lines with failed writes,
and ensure that the rate limiter allocates a small portion of
the write bandwidth to get the job done.
The lba list is saved in memory for use during gc as we
cannot gurantee that the emeta data is readable if a write
error occurred.
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions