Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 292554 Details for
Bug 248787
[RHEL4 U4] NFS server, rpciod was stuck in a infinite loop,
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
debug patch -- add sysrq handler to call rpc_show_tasks()
rpc_show_sysrq.patch (text/plain), 1.42 KB, created by
Jeff Layton
on 2008-01-22 19:59:10 UTC
(
hide
)
Description:
debug patch -- add sysrq handler to call rpc_show_tasks()
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2008-01-22 19:59:10 UTC
Size:
1.42 KB
patch
obsolete
>diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c >index aa2205a..c30d652 100644 >--- a/net/sunrpc/sched.c >+++ b/net/sunrpc/sched.c >@@ -1252,10 +1252,12 @@ void rpc_show_tasks(void) > struct rpc_task *t; > > spin_lock(&rpc_sched_lock); >+#if 0 > if (list_empty(&all_tasks)) { > spin_unlock(&rpc_sched_lock); > return; > } >+#endif > printk("-pid- proc flgs status -client- -prog- --rqstp- -timeout " > "-rpcwait -action- --exit--\n"); > alltask_for_each(t, le, &all_tasks) >diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c >index 801ae3a..e53f296 100644 >--- a/net/sunrpc/sunrpc_syms.c >+++ b/net/sunrpc/sunrpc_syms.c >@@ -15,6 +15,7 @@ > #include <linux/uio.h> > #include <linux/unistd.h> > #include <linux/init.h> >+#include <linux/sysrq.h> > > #include <linux/sunrpc/sched.h> > #include <linux/sunrpc/clnt.h> >@@ -153,6 +154,19 @@ EXPORT_SYMBOL(nlm_debug); > extern int register_rpc_pipefs(void); > extern void unregister_rpc_pipefs(void); > >+static void sysrq_rpc_show_tasks(int key, struct pt_regs *pt_regs, >+ struct tty_struct *tty) >+{ >+ rpc_show_tasks(); >+} >+ >+static struct sysrq_key_op rpc_show_sysrq = >+{ >+ .help_msg = "rpcQueue", >+ .action_msg = "Dump RPC Queue", >+ .handler = sysrq_rpc_show_tasks >+}; >+ > static int __init > init_sunrpc(void) > { >@@ -164,6 +178,7 @@ init_sunrpc(void) > goto out; > #ifdef RPC_DEBUG > rpc_register_sysctl(); >+ register_sysrq_key('q', &rpc_show_sysrq); > #endif > #ifdef CONFIG_PROC_FS > rpc_proc_init();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248787
: 292554 |
292949