summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-19 23:31:50 +0200
committerJ. Bruce Fields <bfields@redhat.com>2010-10-21 16:11:54 +0200
commit8b5ce5cd44743af84507721fa2cb4125ae67955c (patch)
tree24a1fa7191204140283803c17780dc4bb4066bba /fs/nfsd/nfs4callback.c
parentnfsd4: track backchannel connections (diff)
downloadlinux-8b5ce5cd44743af84507721fa2cb4125ae67955c.tar.xz
linux-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 5df9dda47bf4..140bb3656a24 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 */