@@ -185,7 +185,7 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
rpc_authflavor_t authflavour)
{
char buf[INET6_ADDRSTRLEN + 1];
- struct nfs_client *old;
+ struct nfs_client *old = NULL;
int error;
if (clp->cl_cons_state == NFS_CS_READY) {
@@ -139,6 +139,8 @@ int nfs40_discover_server_trunking(struct nfs_client *clp,
switch (status) {
case -NFS4ERR_STALE_CLIENTID:
set_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state);
+ nfs4_schedule_state_renewal(clp);
+ break;
case 0:
/* Sustain the lease, even if it's empty. If the clientid4
* goes stale it's of no use for trunking discovery. */