diff options
author | Javier González <javier@cnexlabs.com> | 2017-10-13 15:46:23 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-10-13 17:34:57 +0300 |
commit | 7bd4d370db6090004a06deb526f0f01fa99a3f9f (patch) | |
tree | 01cbfeca78132835d73f56f1a42c5aeb0731b287 /mm/mremap.c | |
parent | a4809fee4e774fdf3296cc69c22ce6e6acef36b2 (diff) | |
download | linux-7bd4d370db6090004a06deb526f0f01fa99a3f9f.tar.xz |
lightnvm: pblk: guarantee line integrity on reads
When a line is recycled during garbage collection, reads can still be
issued to the line. If the line is freed in the middle of this process,
data corruption might occur.
This patch guarantees that lines are not freed in the middle of reads
that target them (lines). Specifically, we use the existing line
reference to decide when a line is eligible for being freed after the
recycle process.
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions