Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101905
b: refs/heads/master
c: 68a23ee
h: refs/heads/master
i:
  101903: 21dbf47
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jul 9, 2008
1 parent cdfe9f9 commit 6354eee
Show file tree
Hide file tree
Showing 2 changed files with 13 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: b0e1c57ea00302c3ac541ffd37e7db07d13cd674
refs/heads/master: 68a23ee94e3a06819f5a39d64f2e1f3131bab12d
19 changes: 12 additions & 7 deletions trunk/net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,24 +1526,30 @@ struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, int
EXPORT_SYMBOL_GPL(rpc_call_null);

#ifdef RPC_DEBUG
static void rpc_show_header(void)
{
printk(KERN_INFO "-pid- proc flgs status -client- -prog- --rqstp- "
"-timeout -rpcwait -action- ---ops--\n");
}

void rpc_show_tasks(void)
{
struct rpc_clnt *clnt;
struct rpc_task *t;
int header = 0;

spin_lock(&rpc_client_lock);
if (list_empty(&all_clients))
goto out;
printk("-pid- proc flgs status -client- -prog- --rqstp- -timeout "
"-rpcwait -action- ---ops--\n");
list_for_each_entry(clnt, &all_clients, cl_clients) {
if (list_empty(&clnt->cl_tasks))
continue;
spin_lock(&clnt->cl_lock);
list_for_each_entry(t, &clnt->cl_tasks, tk_task) {
const char *rpc_waitq = "none";
int proc;

if (!header) {
rpc_show_header();
header++;
}

if (t->tk_msg.rpc_proc)
proc = t->tk_msg.rpc_proc->p_proc;
else
Expand All @@ -1563,7 +1569,6 @@ void rpc_show_tasks(void)
}
spin_unlock(&clnt->cl_lock);
}
out:
spin_unlock(&rpc_client_lock);
}
#endif

0 comments on commit 6354eee

Please sign in to comment.