Avoid putting a new req on the outstanding_reqs TAILQ until we know it can be initialized successfully. This avoids adding to the TAILQ only to remove it just after. This allow simplifies the outstanding_reqs TAILQ handling, since reqs are now only inserted and removed in one place each. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I5ccc41c14abd541ffcf2a602246e0671386840c7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13991 Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_tcp_ut.c |