+4
−4
Loading
All callers of nvme_tcp_req_complete call nvme_tcp_req_put immediately afterwards, so move this call into nvme_tcp_req_complete. This will help enable some improvements in later patches. Note that nvme_tcp_req_complete_safe has this same functionality open coded right now, but that will get changed in the next patch. It calls nvme_tcp_req_put immediately after the TAILQ_REMOVE, so do that in nvme_tcp_req_complete as well. Signed-off-by:Jim Harris <james.r.harris@intel.com> Change-Id: I368122bc49a7f0772e3011e5427e3c43618380eb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13520 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>