Spdk/lib/nvmf
Shuhei Matsumoto 2bc819dd52 nvmf/tcp: Use STAILQ for queued_c2h_data_tcp_req and pending_data_buf_queue
This is a small performance optimization and an effort to unify
I/O buffer management further among transports.

It is ensured that the request is the first of STAILQ when
spdk_nvmf_tcp_send_c2h_data() is called or the case
TCP_REQUEST_STATE_NEED_BUFFER is executed in spdk_nvmf_tcp_req_process().

Hence change TAILQ_REMOVE to STAILQ_REMOVE_HEAD for these two cases.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I0b195874ac22a8d5ecfb283a9865d2615b7d5912
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466637
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-08-30 16:56:46 +00:00
..
ctrlr_bdev.c nvmf: Add BDEV IO pending statistics 2019-07-12 12:46:29 +00:00
ctrlr_discovery.c nvmf: always update discovery log page if the offset is zero 2019-07-25 18:05:13 +00:00
ctrlr.c nvmf: Delay sending AER until subsystem resumes 2019-08-14 21:24:27 +00:00
fc_ls.c NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00
fc.c nvmf/fc: Replace FC specific get/free_buffers by common APIs 2019-08-29 18:17:38 +00:00
Makefile lib/nvmf: extract RPCs from the subsystem directory 2019-08-21 17:20:28 +00:00
nvmf_fc.h nvmf: Move data_from_pool flag to common struct spdk_nvmf_request 2019-08-29 18:17:38 +00:00
nvmf_internal.h nvmf: Add spdk_nvmf_request_get/free_buffers() usable among transports 2019-08-29 18:17:38 +00:00
nvmf_rpc.c rpc/nvmf: add tgt_name options to relevant RPCs. 2019-08-21 17:20:28 +00:00
nvmf.c nvmf: add spdk_nvmf_get_tgt function 2019-08-21 17:20:28 +00:00
rdma.c nvmf/rdma: Replace RDMA specific get/free_buffers by common APIs 2019-08-29 18:17:38 +00:00
subsystem.c nvmf: spdk_nvmf_subsystem_remove_ns is no longer asynchronous 2019-07-11 11:19:53 +00:00
tcp.c nvmf/tcp: Use STAILQ for queued_c2h_data_tcp_req and pending_data_buf_queue 2019-08-30 16:56:46 +00:00
transport.c nvmf: Add spdk_nvmf_request_get/free_buffers() usable among transports 2019-08-29 18:17:38 +00:00
transport.h NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00