summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-10-09 13:11:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-13 11:08:21 -0800
commit013b559adfc09cb569086c4cee08235e501381f2 (patch)
tree7a59edaf2a24fc85de80677ad1edee02322bf44a /tools
parent3c5b1d33fc908f3c7b947bbe3bf88ca5b95268f0 (diff)
lightnvm: pblk: fix race condition on metadata I/O
[ Upstream commit d8adaa3b86324c6186d0adf74bc256bdacfffdb6 ] In pblk, when a new line is allocated, metadata for the previously written line is scheduled. This is done through a fixed memory region that is shared through time and contexts across different lines and therefore protected by a lock. Unfortunately, this lock is not properly covering all the metadata used for sharing this memory regions, resulting in a race condition. This patch fixes this race condition by protecting this metadata properly. Fixes: dd2a43437337 ("lightnvm: pblk: sched. metadata on write thread") 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions