Loading fs/nfs/nfs4state.c +11 −11 Original line number Original line Diff line number Diff line Loading @@ -1059,22 +1059,22 @@ static int nfs4_check_lease(struct nfs_client *clp) struct rpc_cred *cred; struct rpc_cred *cred; int status = -NFS4ERR_EXPIRED; int status = -NFS4ERR_EXPIRED; /* Are there any open files on this volume? */ /* Is the client already known to have an expired lease? */ if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) return 0; cred = nfs4_get_renew_cred(clp); cred = nfs4_get_renew_cred(clp); if (cred != NULL) { if (cred == NULL) { /* Yes there are: try to renew the old lease */ cred = nfs4_get_setclientid_cred(clp); if (cred == NULL) goto out; } status = nfs4_proc_renew(clp, cred); status = nfs4_proc_renew(clp, cred); put_rpccred(cred); put_rpccred(cred); out: nfs4_recovery_handle_error(clp, status); nfs4_recovery_handle_error(clp, status); return status; return status; } } /* "reboot" to ensure we clear all state on the server */ clp->cl_boot_time = CURRENT_TIME; set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); return status; } static int nfs4_reclaim_lease(struct nfs_client *clp) static int nfs4_reclaim_lease(struct nfs_client *clp) { { struct rpc_cred *cred; struct rpc_cred *cred; Loading Loading
fs/nfs/nfs4state.c +11 −11 Original line number Original line Diff line number Diff line Loading @@ -1059,22 +1059,22 @@ static int nfs4_check_lease(struct nfs_client *clp) struct rpc_cred *cred; struct rpc_cred *cred; int status = -NFS4ERR_EXPIRED; int status = -NFS4ERR_EXPIRED; /* Are there any open files on this volume? */ /* Is the client already known to have an expired lease? */ if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) return 0; cred = nfs4_get_renew_cred(clp); cred = nfs4_get_renew_cred(clp); if (cred != NULL) { if (cred == NULL) { /* Yes there are: try to renew the old lease */ cred = nfs4_get_setclientid_cred(clp); if (cred == NULL) goto out; } status = nfs4_proc_renew(clp, cred); status = nfs4_proc_renew(clp, cred); put_rpccred(cred); put_rpccred(cred); out: nfs4_recovery_handle_error(clp, status); nfs4_recovery_handle_error(clp, status); return status; return status; } } /* "reboot" to ensure we clear all state on the server */ clp->cl_boot_time = CURRENT_TIME; set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); return status; } static int nfs4_reclaim_lease(struct nfs_client *clp) static int nfs4_reclaim_lease(struct nfs_client *clp) { { struct rpc_cred *cred; struct rpc_cred *cred; Loading