: rpc_debug mode causes an oops
Subsystems (3)
PATCH 1/1 : rpc_debug mode causes an oops
this patch fixes a bug introduced by the recent rpc_procinfo change. when entering debug mode, one of the debug printk's in sched.c expects tk_msg.rpc_proc to be non-NULL, but now it can be NULL in certain legitimate cases.
the rpc_qname cleanup below removes redundant code.
net/sunrpc/sched.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
net/sunrpc/sched.c +3 -2
@@ -1123,11 +1123,12 @@ "-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 :-1 ), t->tk_flags, t->tk_status, t->tk_client, t->tk_client->cl_prog, t->tk_rqstp, t->tk_timeout, - t->tk_rpcwait ?rpc_qname (t->tk_rpcwait) :" <NULL> " , +rpc_qname (t->tk_rpcwait), t->tk_action, t->tk_exit);spin_unlock (&rpc_sched_lock); }
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs