nfs41: recover lease in _nfs4_lookup_root
This creates the nfsv4.1 session on mount. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
b4b82607ff
commit
008f55d0e0
3 changed files with 25 additions and 1 deletions
|
@ -527,6 +527,22 @@ void nfs_mark_client_ready(struct nfs_client *clp, int state)
|
|||
wake_up_all(&nfs_client_active_wq);
|
||||
}
|
||||
|
||||
/*
|
||||
* With sessions, the client is not marked ready until after a
|
||||
* successful EXCHANGE_ID and CREATE_SESSION.
|
||||
*
|
||||
* Map errors cl_cons_state errors to EPROTONOSUPPORT to indicate
|
||||
* other versions of NFS can be tried.
|
||||
*/
|
||||
int nfs4_check_client_ready(struct nfs_client *clp)
|
||||
{
|
||||
if (!nfs4_has_session(clp))
|
||||
return 0;
|
||||
if (clp->cl_cons_state < NFS_CS_READY)
|
||||
return -EPROTONOSUPPORT;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialise the timeout values for a connection
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue