diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-12-04 09:57:09 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-01-07 17:54:29 -0500 |
commit | 6a04a4349330c5476adf465159a7f49411091bbe (patch) | |
tree | 49b12599f0a19677a8d35fe516efdb338c53c9a6 /include | |
parent | 2cc0f23b53050c047fe99ebe73c162268e8dd635 (diff) | |
download | linux-stable-6a04a4349330c5476adf465159a7f49411091bbe.tar.gz linux-stable-6a04a4349330c5476adf465159a7f49411091bbe.tar.bz2 linux-stable-6a04a4349330c5476adf465159a7f49411091bbe.zip |
svcrdma: Move struct svc_rdma_chunk_ctxt to svc_rdma.h
Prepare for nestling these into the send and recv ctxts so they
no longer have to be allocated dynamically.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index ab250017b99f..50c4f18a9b7f 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -127,6 +127,21 @@ enum { #define RPCSVC_MAXPAYLOAD_RDMA RPCSVC_MAXPAYLOAD +/* + * A chunk context tracks all I/O for moving one Read or Write + * chunk. This is a set of rdma_rw's that handle data movement + * for all segments of one chunk. + */ +struct svc_rdma_chunk_ctxt { + struct rpc_rdma_cid cc_cid; + struct ib_cqe cc_cqe; + struct list_head cc_rwctxts; + ktime_t cc_posttime; + int cc_sqecount; + enum ib_wc_status cc_status; + struct completion cc_done; +}; + struct svc_rdma_recv_ctxt { struct llist_node rc_node; struct list_head rc_list; |