SUNRPC: Ensure rpc_task->tk_pid is available for tracepoints
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Sep 2013 18:45:13 +0000 (14:45 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Sep 2013 18:45:13 +0000 (14:45 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/sched.c

index 6d87035..8ebb7c0 100644 (file)
@@ -79,7 +79,7 @@ struct rpc_task {
        unsigned short          tk_flags;       /* misc flags */
        unsigned short          tk_timeouts;    /* maj timeouts */
 
-#ifdef RPC_DEBUG
+#if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS)
        unsigned short          tk_pid;         /* debugging aid */
 #endif
        unsigned char           tk_priority : 2,/* Task priority */
index 93a7a4e..ff3cc4b 100644 (file)
@@ -258,7 +258,7 @@ static int rpc_wait_bit_killable(void *word)
        return 0;
 }
 
-#ifdef RPC_DEBUG
+#if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS)
 static void rpc_task_set_debuginfo(struct rpc_task *task)
 {
        static atomic_t rpc_pid;