Loading
examples/nvme_fio_plugin: fix reset_wp()
When _reset_wp() received a range to reset, then the loop kept resetting the first zone in the range. Also, the processing of command-completion were re-using the same 'completion' state, thus a previous completion would short-circuit command-completion such that it would never be processed. This change fixes that. Also, the reset-loop assumes that the given offset is a valid zone-start LBA, a check is added to verify that and return -EINVAL if it is not. Signed-off-by:Simon A. F. Lund <simon.lund@samsung.com> Change-Id: I1a1e4be2e1f67c2d8fecb5fc36a211b2dbb5a921 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4915 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> Reviewed-by:
Niklas Cassel <niklas.cassel@wdc.com>