projects/linux·commit bc2a3f86

sunrpc: fix rpc debugging

bc2a3f86 · J. Bruce Fields <[email protected]> · 2007-10-29 14:37:18 -07:00

Commit baa3a2a0d24ebcf1c451bec8e5bee3d3467f4cbb ("sysctl: remove broken
sunrpc debug binary sysctls"), by removing initialization of the
ctl_name field, broke this conditional, preventing the display of
rpc_tasks that you previously got when turning on rpc debugging.

[[email protected]: coding-style fixes]
Signed-off-by: J. Bruce Fields <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
bc2a3f86f46569fb091792867ce67c9ab24dfd0f
Parents
cc72233c

Changes

1 files changed · +1 −2

FileStatusAddDelContent
net/sunrpc/sysctl.cmodified+1−2View file

net/sunrpc/sysctl.c

View file
diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c
index 864b541..2be714e 100644
--- a/net/sunrpc/sysctl.c
+++ b/net/sunrpc/sysctl.c
@@ -87,9 +87,8 @@ proc_dodebug(ctl_table *table, int write, struct file *file,
left--, s++;
*(unsigned int *) table->data = value;
/* Display the RPC tasks on writing to rpc_debug */
- if (table->ctl_name == CTL_RPCDEBUG) {
+ if (strcmp(table->procname, "rpc_debug") == 0)
rpc_show_tasks();
- }
} else {
if (!access_ok(VERIFY_WRITE, buffer, left))
return -EFAULT;