nfs41: nfs41: pass *session in seq_args and seq_res
To be used for getting the rpc's minorversion and for nfs41 xdr {en,de}coding of the sequence operation. Reset the seq session ptrs for minorversion=0 rpc calls. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
cccef3b96a
commit
f3752975ca
2 changed files with 3 additions and 2 deletions
|
@ -291,6 +291,7 @@ int _nfs4_call_sync(struct nfs_server *server,
|
||||||
struct nfs4_sequence_res *res,
|
struct nfs4_sequence_res *res,
|
||||||
int cache_reply)
|
int cache_reply)
|
||||||
{
|
{
|
||||||
|
args->sa_session = res->sr_session = NULL;
|
||||||
return rpc_call_sync(server->client, msg, 0);
|
return rpc_call_sync(server->client, msg, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,11 +162,11 @@ struct nfs4_slot {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nfs4_sequence_args {
|
struct nfs4_sequence_args {
|
||||||
/* stub */
|
struct nfs4_session *sa_session;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nfs4_sequence_res {
|
struct nfs4_sequence_res {
|
||||||
/* stub */
|
struct nfs4_session *sr_session;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue