Commit 521c2a43 authored by J. Bruce Fields's avatar J. Bruce Fields Committed by David S. Miller

[SUNRPC]: fix rpc debugging

Commit baa3a2a0, 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.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Acked-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ccfe618
...@@ -87,9 +87,8 @@ proc_dodebug(ctl_table *table, int write, struct file *file, ...@@ -87,9 +87,8 @@ proc_dodebug(ctl_table *table, int write, struct file *file,
left--, s++; left--, s++;
*(unsigned int *) table->data = value; *(unsigned int *) table->data = value;
/* Display the RPC tasks on writing to rpc_debug */ /* 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(); rpc_show_tasks();
}
} else { } else {
if (!access_ok(VERIFY_WRITE, buffer, left)) if (!access_ok(VERIFY_WRITE, buffer, left))
return -EFAULT; return -EFAULT;
......
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