]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: simplify path on REQ_PREFLUSH
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:17 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit24e8d211e024695498373c3ae320dc53728a15d8
treee99c846fd3bbbd5786e41425371584763abe0d0a
parentc1710ddb1a775855837fdb63f4ee6e38b3752f27
lightnvm: pblk: simplify path on REQ_PREFLUSH

On REQ_PREFLUSH, directly tag the I/O context flags to signal a flush in
the write to cache path, instead of finding the correct entry context
and imposing a memory barrier. This simplifies the code and might
potentially prevent race conditions when adding functionality to the
write path.

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