bdevperf: don't exit on I/O failure during reset

The outstanding I/O at the time of reset are expected to fail, so don't
exit with an error code.

This could use some better validation to make sure failures only happen
during the reset, but this at least gets the nightly tests running
again.

Change-Id: Ibf5e6962fabd1a556a64591c65012ffacc1fd1d1
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-11-14 09:55:20 -07:00
parent 47214fa6c2
commit 8cd385908c

View File

@ -190,8 +190,10 @@ bdevperf_complete(spdk_event_t event)
target = task->target;
if (bdev_io->status != SPDK_BDEV_IO_STATUS_SUCCESS) {
target->is_draining = true;
g_run_failed = true;
if (!g_reset) {
target->is_draining = true;
g_run_failed = true;
}
} else if (g_verify || g_reset || g_unmap) {
assert(bdev_io->u.read.iovcnt == 1);
if (memcmp(task->buf, bdev_io->u.read.iov.iov_base, g_io_size) != 0) {