Existing code in spdk_bdev_write_zeroes_blocks() will call spdk_bdev_free_io() for the error case, which will cause assertion because the bdev_io isn't submitted to the backend yet, so we will check the condtion first to avoid the error case. Change-Id: If27d78217f709a3315e74c00869d345abd6b9a69 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453491 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bdev_ut.c | ||
Makefile |