aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorJavier González <[email protected]>2018-10-09 13:12:15 +0200
committerJens Axboe <[email protected]>2018-10-09 08:25:08 -0600
commit766c8ceb16fce904d6b8985ca2c0a547e053d1d5 (patch)
tree36e7d365c27ed8c6173375b4ba59d5b6980dbdfa /tools/perf/util/c++/clang.cpp
parent8a57fc3823d08edb1661a06d9e0a8c2365ac561e (diff)
lightnvm: pblk: guarantee that backpointer is respected on writer stall
pblk's write buffer must guarantee that it respects the device's constrains for reads (i.e., mw_cunits). This is done by maintaining a backpointer that updates the L2P table as entries wrap up, making them point to the media instead of pointing to the write buffer. This mechanism can race in case that the write thread stalls, as the write pointer will protect the last written entry, thus disregarding the read constrains. This patch adds an extra check on wrap up, making sure that the threshold is respected at all times, preventing new entries to overwrite committed data, also in case of write thread stall. Reported-by: Heiner Litz <[email protected]> Signed-off-by: Javier González <[email protected]> Reviewed-by: Heiner Litz <[email protected]> Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions