linux-sg2042/drivers/lightnvm
Hans Holmberg 1864de94ec lightnvm: pblk: stop recreating global caches
Pblk should not create a set of global caches every time
a pblk instance is created. The global caches should be
made available only when there is one or more pblk instances.

This patch bundles the global caches together with a kref
keeping track of whether the caches should be available or not.

Also, turn the global pblk lock into a mutex that explicitly
protects the caches (as this was the only purpose of the lock).

Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-10-09 08:25:07 -06:00
..
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
core.c lightnvm: introduce nvm_rq_to_ppa_list 2018-10-09 08:25:07 -06:00
pblk-cache.c block: Add and use op_stat_group() for indexing disk_stat fields. 2018-07-18 08:44:20 -06:00
pblk-core.c lightnvm: pblk: add tracing for chunk resets 2018-10-09 08:25:07 -06:00
pblk-gc.c lightnvm: pblk: add trace events for line state changes 2018-10-09 08:25:07 -06:00
pblk-init.c lightnvm: pblk: stop recreating global caches 2018-10-09 08:25:07 -06:00
pblk-map.c lightnvm: pblk: remove debug from pblk_[down/up]_page 2018-10-09 08:25:07 -06:00
pblk-rb.c lightnvm: pblk: improve line helpers 2018-10-09 08:25:06 -06:00
pblk-read.c lightnvm: pblk: fix up prints in pblk_read_check_rand 2018-10-09 08:25:07 -06:00
pblk-recovery.c lightnvm: pblk: calculate line pad distance in helper 2018-10-09 08:25:07 -06:00
pblk-rl.c lightnvm: pblk: unify vector max req constants 2018-10-09 08:25:06 -06:00
pblk-sysfs.c lightnvm: pblk: fix write amplificiation calculation 2018-10-09 08:25:07 -06:00
pblk-trace.h lightnvm: pblk: add tracing for chunk resets 2018-10-09 08:25:07 -06:00
pblk-write.c lightnvm: pblk: add trace events for chunk states 2018-10-09 08:25:07 -06:00
pblk.h lightnvm: pblk: calculate line pad distance in helper 2018-10-09 08:25:07 -06:00