Loading
lib/nvme: only set qpair->transport once
If controller is reset with active IO qpairs, those IO qpairs go back through nvme_transport_ctrlr_connect_qpair. But if IO qpairs are allocated from different processes, some qpairs will go through that function from a foreign process. That is generally fine, except that function also always resets the transport object. But the transport objects are process-specific since they contain function pointers. We cannot point a qpair to a transport from a foreign process. So just skip setting the transport if it is already set. Signed-off-by:Jim Harris <jim.harris@samsung.com> Change-Id: Ib9ae8b2d442206c2dad956e1ff2ffa2bced75b28 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21165 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot