2003-05-02 19:37:58

by Chuck Lever

[permalink] [raw]
Subject: [PATCH] BPB (brown paper bag) rpc_show_tasks

hi trond-

the recently-applied patch to fix the rpc_show_tasks() Oops is incomplete.
this applies over 2.5.68 and should address all of the issues in
rpc_show_tasks().

diff -Naurp old/net/sunrpc/sched.c new/net/sunrpc/sched.c
--- old/net/sunrpc/sched.c Fri May 2 15:31:37 2003
+++ new/net/sunrpc/sched.c Fri May 2 15:32:43 2003
@@ -1149,9 +1149,10 @@ void rpc_show_tasks(void)
alltask_for_each(t, le, &all_tasks)
printk("%05d %04d %04x %06d %8p %6d %8p %08ld %8s %8p %8p\n",
t->tk_pid,
- (t->tk_msg.rpc_proc->p_proc ? t->tk_msg.rpc_proc->p_proc : -1),
+ (t->tk_msg.rpc_proc ? t->tk_msg.rpc_proc->p_proc : -1),
t->tk_flags, t->tk_status,
- t->tk_client, t->tk_client->cl_prog,
+ t->tk_client,
+ (t->tk_client ? t->tk_client->cl_prog : 0),
t->tk_rqstp, t->tk_timeout,
rpc_qname(t->tk_rpcwait),
t->tk_action, t->tk_exit);

- Chuck Lever
--
corporate: <cel at netapp dot com>
personal: <chucklever at bigfoot dot com>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs