Spdk/examples
Simon A. F. Lund 9c93d81be3 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>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4915 (master)

(cherry picked from commit 12a44d4745)
Change-Id: I1a1e4be2e1f67c2d8fecb5fc36a211b2dbb5a921
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4940
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Simon A. F. Lund <simon.lund@samsung.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-10-29 08:10:17 +00:00
..
accel examples/accel/perf: replace mempool of tasks with lists of tasks 2020-07-24 19:38:46 +00:00
bdev example/bdev/hellow_word: Drop .ini config in favor of json 2020-10-23 13:47:23 +00:00
blob script/gen_nvme: do not generate legacy configuration 2020-10-22 17:08:41 +00:00
interrupt_tgt interrupt_tgt: add lvol, blobfs and basic bdevs 2020-10-23 16:23:48 +00:00
ioat example/ioat: Initialize global TAILQ HEAD variables at definition. 2020-10-14 08:06:25 +00:00
nvme examples/nvme_fio_plugin: fix reset_wp() 2020-10-29 08:10:17 +00:00
nvmf nvmf: Eliminate spdk_nvmf_tgt_accept() 2020-09-21 07:55:54 +00:00
sock sock/vpp: remove VPP implementation 2020-08-17 08:19:46 +00:00
vmd lib/vmd: detach devices during shutdown 2020-02-04 16:50:25 +00:00
Makefile interrupt: add interrupt_tgt app 2020-10-23 16:23:48 +00:00