Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124733
b: refs/heads/master
c: f3c7649
h: refs/heads/master
i:
  124731: cd71d4b
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Dec 23, 2008
1 parent 5827062 commit 8c567f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e005e8041c132af9f70862e1387a222198f95e7f
refs/heads/master: f3c76491e7ecacbb7942633f3b2a3514b7476ef9
8 changes: 6 additions & 2 deletions trunk/fs/nfs/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
int status = 0;

/* Ensure exclusive access to NFSv4 state */
while (!list_empty(&clp->cl_superblocks)) {
for(;;) {
if (test_and_clear_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) {
/* We're going to have to re-establish a clientid */
status = nfs4_reclaim_lease(clp);
Expand Down Expand Up @@ -1161,7 +1161,11 @@ static void nfs4_state_manager(struct nfs_client *clp)
}

nfs4_clear_state_manager_bit(clp);
break;
/* Did we race with an attempt to give us more work? */
if (clp->cl_state == 0)
break;
if (test_and_set_bit(NFS4CLNT_MANAGER_RUNNING, &clp->cl_state) != 0)
break;
}
return;
out_error:
Expand Down

0 comments on commit 8c567f4

Please sign in to comment.