nvme/tcp: Insert free req at the head of the list
lifo model is more cache friendly Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: Id937ab0c1b8b4ce121136144c7d6013bbe5eb963 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3282 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
35429c9b5d
commit
e137881e4e
@ -187,7 +187,7 @@ nvme_tcp_req_put(struct nvme_tcp_qpair *tqpair, struct nvme_tcp_req *tcp_req)
|
||||
{
|
||||
assert(tcp_req->state != NVME_TCP_REQ_FREE);
|
||||
tcp_req->state = NVME_TCP_REQ_FREE;
|
||||
TAILQ_INSERT_TAIL(&tqpair->free_reqs, tcp_req, link);
|
||||
TAILQ_INSERT_HEAD(&tqpair->free_reqs, tcp_req, link);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user