OSDN Git Service

svcrdma: Plant reader function in struct svcxprt_rdma
authorChuck Lever <chuck.lever@oracle.com>
Tue, 13 Jan 2015 16:03:20 +0000 (11:03 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 15 Jan 2015 20:01:46 +0000 (15:01 -0500)
commite54524111f51eac1900cf91aca3d38a92a6b11c0
tree9c743ddc7d54a9aaf35b66d3cfa727ecac00f749
parente5523bd28101869c85856247fc120faaf72bd232
svcrdma: Plant reader function in struct svcxprt_rdma

The RDMA reader function doesn't change once an svcxprt_rdma is
instantiated. Instead of checking sc_devcap during every incoming
RPC, set the reader function once when the connection is accepted.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.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_transport.c