svcrdma: Optimize svc_rdma_cc_init()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 11 Dec 2023 15:24:15 +0000 (10:24 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sun, 7 Jan 2024 22:54:32 +0000 (17:54 -0500)
commit2a95ce479e681b35e385da0f1a6adf7c6240ddce
tree85560a81d606491177a8ed88457b2e846191fa72
parent28ee0ec8948ac235327a1f5472fc032b308284a3
svcrdma: Optimize svc_rdma_cc_init()

The atomic_inc_return() in svc_rdma_send_cid_init() is expensive.

Some svc_rdma_chunk_ctxt's now reside in long-lived container
structures. They don't need a fresh completion ID for every I/O
operation.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_rw.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c