Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25589
b: refs/heads/master
c: 4e2fd49
h: refs/heads/master
i:
  25587: e63be1f
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Apr 11, 2006
1 parent cdcccc4 commit 557b94a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 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: 541e0e09814594e907e18fb8d9fc9b746aa4b18a
refs/heads/master: 4e2fd495b520b51e4ba83340f13520b7f07e3743
21 changes: 14 additions & 7 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,23 +329,30 @@ put_nfs4_client(struct nfs4_client *clp)
free_client(clp);
}

static void
shutdown_callback_client(struct nfs4_client *clp)
{
struct rpc_clnt *clnt = clp->cl_callback.cb_client;

/* shutdown rpc client, ending any outstanding recall rpcs */
if (clnt) {
clp->cl_callback.cb_client = NULL;
rpc_shutdown_client(clnt);
rpciod_down();
}
}

static void
expire_client(struct nfs4_client *clp)
{
struct nfs4_stateowner *sop;
struct nfs4_delegation *dp;
struct nfs4_callback *cb = &clp->cl_callback;
struct rpc_clnt *clnt = clp->cl_callback.cb_client;
struct list_head reaplist;

dprintk("NFSD: expire_client cl_count %d\n",
atomic_read(&clp->cl_count));

/* shutdown rpc client, ending any outstanding recall rpcs */
if (atomic_read(&cb->cb_set) == 1 && clnt) {
rpc_shutdown_client(clnt);
clnt = clp->cl_callback.cb_client = NULL;
}
shutdown_callback_client(clp);

INIT_LIST_HEAD(&reaplist);
spin_lock(&recall_lock);
Expand Down

0 comments on commit 557b94a

Please sign in to comment.