RPC switches into debug mode

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Mar 22 2000 - 19:29:09 EST


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?

-
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:37 EST