2003-04-04 16:01:15

by Bruce Allan

[permalink] [raw]
Subject: patch to fix oops when rpc_debug enabled

Discovered a couple different intermittent oops'es after enabling
rpc_debug. The patch below is against 2.5.66.

--- linux-2.5.66/net/sunrpc/sched.c 2003-03-24 14:00:44.000000000 -0800
+++ linux-2.5.66-rpc_debug/net/sunrpc/sched.c 2003-04-04 07:48:17.000000000 -0800
@@ -1115,9 +1115,10 @@
"-rpcwait -action- --exit--\n");
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_pid,
+ t->tk_msg.rpc_proc ? t->tk_msg.rpc_proc->p_proc : 0,
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,
t->tk_rpcwait ? rpc_qname(t->tk_rpcwait) : " <NULL> ",
t->tk_action, t->tk_exit);

--
Bruce Allan
Linux Technology Center
IBM Corporation, Beaverton OR



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs