Spdk/lib/ftl
Maciej Szczepaniak 01ea524068 lib/ftl: Create l2p on l2p_path file if set in config
New spdk_ftl_conf parameter l2p_path, l2p_path defines
location of existing pmem file or device to use as l2p table.

ftl_dev_l2p_alloc now has two flows:
1. If l2p_path is set perform pmem_map_file (PMDK) of l2p_size on it
2. Else malloc l2p table as usual

l2p_get/set will use atomic_load/store on both of those storage
locations as PMDK pmem_memcpy family of functions is not thread safe.

Signed-off-by: Maciej Szczepaniak <maciej.szczepaniak@intel.com>
Change-Id: I91806feb7aa0ef8057792bc120b09a39c63c8640
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/649
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-03-06 10:28:21 +00:00
..
ftl_addr.h lib/ftl: Represent ftl_addr just with the offset value 2020-01-17 08:59:08 +00:00
ftl_band.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_band.h lib/ftl: Move zone reset logic from band to core 2020-02-10 10:24:38 +00:00
ftl_core.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_core.h lib/ftl: Create l2p on l2p_path file if set in config 2020-03-06 10:28:21 +00:00
ftl_debug.c lib/ftl: Change "lbk" name to "block" 2020-01-17 08:59:08 +00:00
ftl_debug.h lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_init.c lib/ftl: Create l2p on l2p_path file if set in config 2020-03-06 10:28:21 +00:00
ftl_io.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_io.h lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_reloc.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_reloc.h lib/ftl: Change "lbk" name to "block" 2020-01-17 08:59:08 +00:00
ftl_restore.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_trace.c lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
ftl_trace.h lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00
Makefile lib/ftl: use per-io_channel write buffers 2020-03-02 10:27:06 +00:00