NFS4: Fix v4.0 client state corruption when mount
[linux-2.6-block.git] / fs / nfs / nfs4state.c
index 3de36479ed7a1f652b488021673ace66bf668c0e..f502f1c054cf7645d7b3d27082c180d5b7c067d8 100644 (file)
@@ -159,6 +159,10 @@ int nfs40_discover_server_trunking(struct nfs_client *clp,
                /* Sustain the lease, even if it's empty.  If the clientid4
                 * goes stale it's of no use for trunking discovery. */
                nfs4_schedule_state_renewal(*result);
+
+               /* If the client state need to recover, do it. */
+               if (clp->cl_state)
+                       nfs4_schedule_state_manager(clp);
        }
 out:
        return status;