diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-11-27 19:11:35 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-11-29 02:36:03 +0300 |
commit | 97bce63408f192712574a4d9d6dcab794eed3a79 (patch) | |
tree | 3e39fd9091f3ca6bde80531c76a615af6629bd80 /include/linux/sunrpc/svc_rdma.h | |
parent | b493fd31c0b89d9453917e977002de58bebc3802 (diff) | |
download | linux-97bce63408f192712574a4d9d6dcab794eed3a79.tar.xz |
svcrdma: Optimize the logic that selects the R_key to invalidate
o Select the R_key to invalidate while the CPU cache still contains
the received RPC Call transport header, rather than waiting until
we're about to send the RPC Reply.
o Choose Send With Invalidate if there is exactly one distinct R_key
in the received transport header. If there's more than one, the
client will have to perform local invalidation after it has
already waited for remote invalidation.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc/svc_rdma.h')
-rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index e6e26918504c..7e22681333d0 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -135,6 +135,7 @@ struct svc_rdma_recv_ctxt { u32 rc_byte_len; unsigned int rc_page_count; unsigned int rc_hdr_count; + u32 rc_inv_rkey; struct page *rc_pages[RPCSVC_MAXPAGES]; }; |