+8
−4
+1
−0
Loading
When users remove kernel NVMe driver in the VM, after 120 seconds, SPDK NVMf target will disconnect ADMIN queue pair due to association timer timeout, and for vfio-user transport, the ADMIN queue pair connection is associated with the socket connection, so when probing the NVMe controller again, because there is no active ADMIN connection for fabric register R/W commands, it will cause segment fault. Here we set the association timeout value to 0 for vfio-user transport, so that the ADMIN connection will not be disconnected when shutdown the controller, the ADMIN queue pair will be disconnected when the socket connection breaks. Change-Id: I3613169229bae384405889653e50f581d30d7c07 Signed-off-by:Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8557 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>