Skip to content

Commit f201bdf

Browse files
Olga KornievskaiaTrond Myklebust
authored andcommitted
NFSv4.1 probe offline transports for trunking on session creation
Once the session is established call into the SUNRPC layer to check if any offlined trunking connections should be re-enabled. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 92cc04f commit f201bdf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fs/nfs/nfs4proc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9249,6 +9249,13 @@ int nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred)
92499249
int status;
92509250
unsigned *ptr;
92519251
struct nfs4_session *session = clp->cl_session;
9252+
struct nfs4_add_xprt_data xprtdata = {
9253+
.clp = clp,
9254+
};
9255+
struct rpc_add_xprt_test rpcdata = {
9256+
.add_xprt_test = clp->cl_mvops->session_trunk,
9257+
.data = &xprtdata,
9258+
};
92529259

92539260
dprintk("--> %s clp=%p session=%p\n", __func__, clp, session);
92549261

@@ -9265,6 +9272,7 @@ int nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred)
92659272
ptr = (unsigned *)&session->sess_id.data[0];
92669273
dprintk("%s client>seqid %d sessionid %u:%u:%u:%u\n", __func__,
92679274
clp->cl_seqid, ptr[0], ptr[1], ptr[2], ptr[3]);
9275+
rpc_clnt_probe_trunked_xprts(clp->cl_rpcclient, &rpcdata);
92689276
out:
92699277
return status;
92709278
}

0 commit comments

Comments
 (0)