nfsd: use nfs client rpc callback program
authorBenny Halevy <bhalevy@panasas.com>
Sun, 28 Sep 2008 06:21:26 +0000 (09:21 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 29 Sep 2008 22:13:40 +0000 (18:13 -0400)
commitd5b337b4877f7c4e1d761434ee04d045b0201e03
tree0c31c4cfb0f2010a87b0f1ae7246cbd50068306e
parent97eb89bb0e5d9ab20dbc677cb18fad1421473287
nfsd: use nfs client rpc callback program

since commit ff7d9756b501744540be65e172d27ee321d86103
"nfsd: use static memory for callback program and stats"
do_probe_callback uses a static callback program
(NFS4_CALLBACK) rather than the one set in clp->cl_callback.cb_prog
as passed in by the client in setclientid (4.0)
or create_session (4.1).

This patches introduces rpc_create_args.prognumber that allows
overriding program->number when creating rpc_clnt.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4callback.c
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c