]> asedeno.scripts.mit.edu Git - linux.git/commit
svcrdma: Optimize the logic that selects the R_key to invalidate
authorChuck Lever <chuck.lever@oracle.com>
Tue, 27 Nov 2018 16:11:35 +0000 (11:11 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Nov 2018 23:36:03 +0000 (18:36 -0500)
commit97bce63408f192712574a4d9d6dcab794eed3a79
tree3e39fd9091f3ca6bde80531c76a615af6629bd80
parentb493fd31c0b89d9453917e977002de58bebc3802
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>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c