|
@@ -309,7 +309,6 @@ int nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred)
|
|
|
|
|
|
if (test_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state))
|
|
if (test_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state))
|
|
goto do_confirm;
|
|
goto do_confirm;
|
|
- nfs4_begin_drain_session(clp);
|
|
|
|
status = nfs4_proc_exchange_id(clp, cred);
|
|
status = nfs4_proc_exchange_id(clp, cred);
|
|
if (status != 0)
|
|
if (status != 0)
|
|
goto out;
|
|
goto out;
|
|
@@ -1832,6 +1831,7 @@ static int nfs4_establish_lease(struct nfs_client *clp)
|
|
clp->cl_mvops->reboot_recovery_ops;
|
|
clp->cl_mvops->reboot_recovery_ops;
|
|
int status;
|
|
int status;
|
|
|
|
|
|
|
|
+ nfs4_begin_drain_session(clp);
|
|
cred = nfs4_get_clid_cred(clp);
|
|
cred = nfs4_get_clid_cred(clp);
|
|
if (cred == NULL)
|
|
if (cred == NULL)
|
|
return -ENOENT;
|
|
return -ENOENT;
|