fb15434659
Remember current write position within the cache when shutting down. It allows for faster recovery after clean shutdown (no need to scan the device) as well as grants a quick way to distinguish between clean and dirty shutdowns. Change-Id: I79c22caa0b1ca4373951ac43f747b085d331cdd0 Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460796 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-by: Mateusz Kozlowski <mateusz.kozlowski@intel.com>