+11
−0
+9
−0
+6
−0
+33
−1
Loading
This new API signals that the ctrlr will soon be reset. This allows the transport to skip unnecessary steps in following calls to the driver prior to the reset - for example, skipping PCIe DELETE_SQ/CQ commands when freeing an IO qpair. Note that if we are deleting a qpair after prepare_for_reset was called, and the qpair is still waiting for a CREATE_IO_CQ or CREATE_IO_SQ, we cannot poll for those commands to complete, but we also cannot free the qpair immediately. So set a flag for this case to defer the destruction until the outstanding CREATE_IO_CQ or CREATE_IO_SQ callback is invoked (typically as an aborted command when the reset happens). Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I34c6276ae71e7d61ad4a3720f1a985b1ee96bd8b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9249 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>