aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-init.c
diff options
context:
space:
mode:
authorJavier González <[email protected]>2018-10-09 11:11:35 +0000
committerJens Axboe <[email protected]>2018-10-09 14:25:06 +0000
commitd8adaa3b86324c6186d0adf74bc256bdacfffdb6 (patch)
tree57dc2d2307041907fd8b116876e668565f400b25 /drivers/lightnvm/pblk-init.c
parentlightnvm: move device L2P detection to core (diff)
downloadkernel-d8adaa3b86324c6186d0adf74bc256bdacfffdb6.tar.gz
kernel-d8adaa3b86324c6186d0adf74bc256bdacfffdb6.zip
lightnvm: pblk: fix race condition on metadata I/O
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 <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
0 files changed, 0 insertions, 0 deletions