Commit 24e4c276 authored by Mateusz Kozlowski's avatar Mateusz Kozlowski Committed by Konrad Sztyber
Browse files

lib/ftl: Enable NV cache device process operation



The process mechanism is for any additional tasks that need to be done
for cache-device-specific implementation. For non-vss cache it's
writing of a batch of P2L IO log (the 'vss' part of multiple user
writes).

Change-Id: Ida05d3e061cedb2c4496307441f14ee13881a5e7
Signed-off-by: default avatarMariusz Barczak <Mariusz.Barczak@solidigmtechnology.com>
Signed-off-by: default avatarMateusz Kozlowski <mateusz.kozlowski@solidigm.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19624


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 6283114a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1477,6 +1477,10 @@ ftl_nv_cache_process(struct spdk_ftl_dev *dev)
	compaction_process(nv_cache);
	ftl_chunk_persist_free_state(nv_cache);
	ftl_nv_cache_process_throttle(nv_cache);

	if (nv_cache->nvc_type->ops.process) {
		nv_cache->nvc_type->ops.process(dev);
	}
}

static bool