Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=521c2a43b2e72dd5c9ab1b1ae7f894ba8a58779d
Commit:     521c2a43b2e72dd5c9ab1b1ae7f894ba8a58779d
Parent:     0ccfe61803ad24f1c0fe5e1f5ce840ff0f3d9660
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 30 01:07:15 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Oct 30 01:07:15 2007 -0700

    [SUNRPC]: fix rpc debugging
    
    Commit baa3a2a0d24ebcf1c451bec8e5bee3d3467f4cbb, 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]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/sunrpc/sysctl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to