Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192376
b: refs/heads/master
c: be1fdf6
h: refs/heads/master
v: v3
  • Loading branch information
Benny Halevy authored and J. Bruce Fields committed May 12, 2010
1 parent 351b785 commit a5612bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: 9089f1b4782ff52835059779fd37b7ad765a25c7
refs/heads/master: be1fdf6c4386f56271d2f690b93ef686b769587c
14 changes: 4 additions & 10 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,6 @@ unhash_session(struct nfsd4_session *ses)
list_del(&ses->se_perclnt);
}

static void
release_session(struct nfsd4_session *ses)
{
spin_lock(&client_lock);
unhash_session(ses);
spin_unlock(&client_lock);
nfsd4_put_session(ses);
}

void
free_session(struct kref *kref)
{
Expand Down Expand Up @@ -722,12 +713,15 @@ expire_client(struct nfs4_client *clp)
sop = list_entry(clp->cl_openowners.next, struct nfs4_stateowner, so_perclient);
release_openowner(sop);
}
spin_lock(&client_lock);
while (!list_empty(&clp->cl_sessions)) {
struct nfsd4_session *ses;
ses = list_entry(clp->cl_sessions.next, struct nfsd4_session,
se_perclnt);
release_session(ses);
unhash_session(ses);
nfsd4_put_session(ses);
}
spin_unlock(&client_lock);
nfsd4_set_callback_client(clp, NULL);
if (clp->cl_cb_conn.cb_xprt)
svc_xprt_put(clp->cl_cb_conn.cb_xprt);
Expand Down

0 comments on commit a5612bd

Please sign in to comment.