diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-01-05 14:16:11 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-05 16:50:12 +0100 |
commit | b36bbf9d4f731269b4fe88e1060af1e8c28b7972 (patch) | |
tree | cb8027e0f3bb2ad1bdf293f7e243f4e8fa1e4f7d /block/blk-mq-sched.h | |
parent | lightnvm: pblk: clear flush point on completed writes (diff) | |
download | linux-b36bbf9d4f731269b4fe88e1060af1e8c28b7972.tar.xz linux-b36bbf9d4f731269b4fe88e1060af1e8c28b7972.zip |
lightnvm: pblk: prevent premature sync point resets
Unless we protect flush pointer updates with a lock, we risk
resetting new flush points before we've synced all sectors
up to that point.
This patch protects new flush points with the same spin lock
that is being held when advancing the sync pointer and
resetting completed flush points.
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
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 'block/blk-mq-sched.h')
0 files changed, 0 insertions, 0 deletions