]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: refactor metadata paths
authorJavier González <javier@javigon.com>
Tue, 9 Oct 2018 11:12:03 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:07 +0000 (08:25 -0600)
commit08cd5a0dda748dca45b0cb2edb8b2ae12c859e19
treecdcd70a45e2e2b5bb71d2bdf0d2f7e01d8cc926f
parent8f7505aefc7ed3e010c201cd34e6ced400444ce7
lightnvm: pblk: refactor metadata paths

pblk maintains two different metadata paths for smeta and emeta, which
store metadata at the start of the line and at the end of the line,
respectively. Until now, these path has been common for writing and
retrieving metadata, however, as these paths diverge, the common code
becomes less clear and unnecessary complicated.

In preparation for further changes to the metadata write path, this
patch separates the write and read paths for smeta and emeta and
removes the synchronous emeta path as it not used anymore (emeta is
scheduled asynchronously to prevent jittering due to internal I/Os).

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-gc.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk.h