Loading
nvme/fio_plugin: fix initial_zone_reset
Commit f69367c7 ("fio_nvme: defer qpair allocation to file_open callback") moved the qpair allocation from spdk_fio_setup() to spdk_fio_open(). This broke --initial_zone_reset, which needs a qpair in order to perform the initial zone reset. While at it, move the initial zone reset from spdk_fio_setup() to attach_cb(), as this is where all the other fio options are verified. By placing it in attach_cb(), after the duplicated file check, we avoid the need to loop through the whole fio_thread->fio_qpair list. Since SPDK nvme ioengine no longer initializes the qpairs in .setup(), create a temporary qpair, if the --initial_zone_reset option was used. Signed-off-by:Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I7950304c58aef3ec783f7cd99cfb1e7d7817a197 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7589 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>