Commit e290a394 authored by Trond Myklebust's avatar Trond Myklebust

Fix the RPC debugging code so that it doesn't Oops if a task has

a null 'p_proc' procedure pointer.
parent d27edb65
...@@ -1115,11 +1115,12 @@ void rpc_show_tasks(void) ...@@ -1115,11 +1115,12 @@ void rpc_show_tasks(void)
"-rpcwait -action- --exit--\n"); "-rpcwait -action- --exit--\n");
alltask_for_each(t, le, &all_tasks) alltask_for_each(t, le, &all_tasks)
printk("%05d %04d %04x %06d %8p %6d %8p %08ld %8s %8p %8p\n", 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->p_proc ? t->tk_msg.rpc_proc->p_proc : -1),
t->tk_flags, t->tk_status, t->tk_flags, t->tk_status,
t->tk_client, t->tk_client->cl_prog, t->tk_client, t->tk_client->cl_prog,
t->tk_rqstp, t->tk_timeout, 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); t->tk_action, t->tk_exit);
spin_unlock(&rpc_sched_lock); spin_unlock(&rpc_sched_lock);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment