Re: RPC switches into debug mode

From: Augusto Cesar Radtke (radtke@zaz.com.br)
Date: Thu Mar 23 2000 - 20:16:16 EST


On Thu, 23 Mar 2000, Keith Owens wrote:

> Code fragment from net/sunrpc/sched.c, 2.2 and 2.3 kernels.
>
> #ifdef RPC_DEBUG
> if (task->tk_magic != 0xf00baa) {
> printk(KERN_ERR "RPC: attempt to wake up non-existing task!\n");
> rpc_debug = ~0;
> rpc_show_tasks();
> return;
> }
> #endif
>
> When that test triggers, every following RPC operation is logged. It
> *really* slows down NFS until somebody spots it and resets rpc_debug.
> Why is rpc_debug set to ~0? If this debug is useful, could it be
> automatically reset after a few seconds? And is anybody interested in
> an 2.2.12 RPC debug log for this message?

Add the rpc_debug reset just after rpc_show_tasks(); and before return,
should work fine for the current debug work and after normalize
everything.

-augusto

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:39 EST