]> err.no Git - linux-2.6/commit
svc: Add transport hdr size for defer/revisit
authorTom Tucker <tom@opengridcomputing.com>
Mon, 31 Dec 2007 03:08:29 +0000 (21:08 -0600)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 1 Feb 2008 21:42:13 +0000 (16:42 -0500)
commit260c1d1298f6703d38fdccd3dd5a310766327340
tree95bf71a81a9bba5d1e69940ccba99943682029c5
parent0f0257eaa5d29b80f6ab2c40ed21aa65bb4527f6
svc: Add transport hdr size for defer/revisit

Some transports have a header in front of the RPC header. The current
defer/revisit processing considers only the iov_len and arg_len to
determine how much to back up when saving the original request
to revisit. Add a field to the rqstp structure to save the size
of the transport header so svc_defer can correctly compute
the start of a request.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
include/linux/sunrpc/svc.h
net/sunrpc/svc_xprt.c
net/sunrpc/svcsock.c