• Tom Tucker's avatar
    rdma: SVCRDMA sendto · c06b540a
    Tom Tucker authored
    This file implements the RDMA transport sendto function. A RPC reply
    on an RDMA transport consists of some number of RDMA_WRITE requests
    followed by an RDMA_SEND request. The sendto function parses the
    ONCRPC RDMA reply header to determine how to send the reply back to
    the client. The send queue is sized so as to be able to send complete
    replies for requests in most cases.  In the event that there are not
    enough SQ WR slots to reply, e.g.  big data, the send will block the
    NFSD thread. The I/O callback functions in svc_rdma_transport.c that
    reap WR completions wake any waiters blocked on the SQ. In general,
    the goal is not to block NFSD threads and the has_wspace method
    stall requests when the SQ is nearly full.
    Signed-off-by: default avatarTom Tucker <tom@opengridcomputing.com>
    Acked-by: default avatarNeil Brown <neilb@suse.de>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
    c06b540a
svc_rdma_sendto.c 14.5 KB