diff options
author | Benny Halevy <bhalevy@panasas.com> | 2008-09-28 09:21:26 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-09-29 18:13:40 -0400 |
commit | d5b337b4877f7c4e1d761434ee04d045b0201e03 (patch) | |
tree | 0c31c4cfb0f2010a87b0f1ae7246cbd50068306e /include | |
parent | 97eb89bb0e5d9ab20dbc677cb18fad1421473287 (diff) | |
download | linux-stable-d5b337b4877f7c4e1d761434ee04d045b0201e03.tar.gz linux-stable-d5b337b4877f7c4e1d761434ee04d045b0201e03.tar.bz2 linux-stable-d5b337b4877f7c4e1d761434ee04d045b0201e03.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 8ac8e75243a7..6f0ee1b84a4f 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h @@ -104,6 +104,7 @@ struct rpc_create_args { const struct rpc_timeout *timeout; char *servername; struct rpc_program *program; + u32 prognumber; /* overrides program->number */ u32 version; rpc_authflavor_t authflavor; unsigned long flags; |