+1
−0
Loading
For a ZNS drive, there is a block of memory (nsdata_zns) that is allocated when the ZNS drive is enumerated. This memory is already allocated when the controller code goes to re-construct the namespace for an SPDK_NVME_ASYNC_EVENT_NS_ATTR_CHANGED AEN so the controller code asserts. This commit will fix the assert by destroying (freeing) the namespace structure before re-creating it. Fixes #3028 Signed-off-by:Curt Bruns <curt.e.bruns@gmail.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18251 (master) (cherry picked from commit 6fb6fda9) Change-Id: I2e75077dce727cc1c912c8f980e4d78c1be328ba Signed-off-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18277 Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>