svcrdma: Cleanup sparse warnings in the svcrdma module
authorTom Tucker <tom@ogc.us>
Wed, 15 Feb 2012 17:30:00 +0000 (11:30 -0600)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 17 Feb 2012 23:38:50 +0000 (18:38 -0500)
commitcec56c8ff5e28f58ff13041dca7853738ae577a1
treefb21c7337e046cb2361faca4931907e28fadcb5d
parent2c8bd7e0d1b66b2f8f267fd6ab62a30569c792c0
svcrdma: Cleanup sparse warnings in the svcrdma module

The svcrdma transport was un-marshalling requests in-place. This resulted
in sparse warnings due to __beXX data containing both NBO and HBO data.

The code has been restructured to do byte-swapping as the header is
parsed instead of when the header is validated immediately after receipt.

Also moved extern declarations for the workqueue and memory pools to the
private header file.

Signed-off-by: Tom Tucker <tom@ogc.us>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma.c
net/sunrpc/xprtrdma/svc_rdma_marshal.c
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c
net/sunrpc/xprtrdma/svc_rdma_transport.c
net/sunrpc/xprtrdma/xprt_rdma.h