Skip to content

Commit bc2a3f8

Browse files
J. Bruce FieldsLinus Torvalds
authored andcommitted
sunrpc: fix rpc debugging
Commit baa3a2a ("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. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent cc72233 commit bc2a3f8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎net/sunrpc/sysctl.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ proc_dodebug(ctl_table *table, int write, struct file *file,
8787
left--, s++;
8888
*(unsigned int *) table->data = value;
8989
/* Display the RPC tasks on writing to rpc_debug */
90-
if (table->ctl_name == CTL_RPCDEBUG) {
90+
if (strcmp(table->procname, "rpc_debug") == 0)
9191
rpc_show_tasks();
92-
}
9392
} else {
9493
if (!access_ok(VERIFY_WRITE, buffer, left))
9594
return -EFAULT;

0 commit comments

Comments
 (0)