summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-19 17:31:50 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-21 10:11:54 -0400
commit8b5ce5cd44743af84507721fa2cb4125ae67955c (patch)
tree24a1fa7191204140283803c17780dc4bb4066bba /fs/nfsd/nfs4callback.c
parentd29c374cd20de620898d2936396048518809ae24 (diff)
downloadlinux-3.10-8b5ce5cd44743af84507721fa2cb4125ae67955c.tar.gz
linux-3.10-8b5ce5cd44743af84507721fa2cb4125ae67955c.tar.bz2
linux-3.10-8b5ce5cd44743af84507721fa2cb4125ae67955c.zip
nfsd4: callback program number is per-session
The callback program is allowed to depend on the session which the callback is going over. No change in behavior yet, while we still only do callbacks over a single session for the lifetime of the client. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 5df9dda47bf..140bb3656a2 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -498,6 +498,7 @@ int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn)
return -EINVAL;
if (conn->cb_minorversion) {
args.bc_xprt = conn->cb_xprt;
+ args.prognumber = clp->cl_cb_session->se_cb_prog;
args.protocol = XPRT_TRANSPORT_BC_TCP;
}
/* Create RPC client */