lightnvm: pblk: clear flush point on completed writes
authorHans Holmberg <hans@owltronix.com>
Fri, 5 Jan 2018 13:16:10 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 15:50:12 +0000 (08:50 -0700)
commit533657c190e5a94e585e08d1c4bdd2295c76391a
treef5bbd43599c2f0cbd4be659ecc32a8e2235ab359
parent8154d296d904a6627d69878ab217ef6928335c2d
lightnvm: pblk: clear flush point on completed writes

Move completion of syncs and clearing of flush points to the
write completion path - this ensures that the data has been
comitted to the media before completing bios containing syncs.

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>
drivers/lightnvm/pblk-rb.c
drivers/lightnvm/pblk-write.c