+19
−24
Loading
If spdk_accel_initialize returns an error, SPDK stops all subsystems and calls spdk_accel_finish. spdk_accel_finish tries to unregister io_device which was not be registered due to spdk_accel_initialize returned earlier, that leads to an assert in spdk_io_device_unregister. To fix it, register accel IO deive at the start of spdk_accel_initialize. Also, do not destroy memory domain in error case since it will be destroyed when accel IO device is unregistered Change-Id: If45b24ca39acace387a962660ee689318f59906a Signed-off-by:Alexey Marchuk <alexeymar@nvidia.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18180 Reviewed-by:
Jacek Kalwas <jacek.kalwas@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>