kernel-fxtec-pro1x/drivers/lightnvm
Javier González ff0e498bfa lightnvm: manage open and closed blocks separately
LightNVM targets need to know the state of the flash block when doing
flash optimizations. An example is implementing a write buffer to
respect the flash page size. Currently, block state is not accounted
for; the media manager only differentiates among free, bad and in-use
blocks.

This patch adds the logic in the generic media manager to enable
targets manage blocks into open and close separately, and it implements
such management in rrpc. It also adds a set of flags to describe the
state of the block (open, closed, free, bad).

In order to avoid taking two locks (nvm_lun and rrpc_lun) consecutively,
we introduce lockless get_/put_block primitives so that the open and
close list locks and future common logic is handled within the nvm_lun
lock.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-01-12 08:21:17 -07:00
..
core.c lightnvm: manage open and closed blocks separately 2016-01-12 08:21:17 -07:00
gennvm.c lightnvm: manage open and closed blocks separately 2016-01-12 08:21:17 -07:00
gennvm.h lightnvm: update bad block table format 2015-11-16 15:20:25 -07:00
Kconfig lightnvm: do not compile in debugging by default 2015-12-07 09:14:20 -07:00
Makefile rrpc: Round-robin sector target with cost-based gc 2015-10-29 16:21:42 +09:00
rrpc.c lightnvm: manage open and closed blocks separately 2016-01-12 08:21:17 -07:00
rrpc.h lightnvm: manage open and closed blocks separately 2016-01-12 08:21:17 -07:00