]> Git Repo - linux.git/commitdiff
sunrpc: fix rpc debugging
authorJ. Bruce Fields <[email protected]>
Mon, 29 Oct 2007 21:37:18 +0000 (14:37 -0700)
committerLinus Torvalds <[email protected]>
Tue, 30 Oct 2007 15:06:55 +0000 (08:06 -0700)
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]>
net/sunrpc/sysctl.c

index 864b541bbf5171eb1a4b3338583af6dc2fe41c19..2be714e9b382742be19d7c628f292500d65f77ce 100644 (file)
@@ -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;
This page took 0.053448 seconds and 4 git commands to generate.