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 6d870353674ac274a3f27e0f454749f7e5c18485..8ebb7c043f0512c4d4778e9813a925c71555f2c0 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 93a7a4e94d80abcd423215e2102d510af7331fe9..ff3cc4bf4b24bc868088a67dd9ad92d40e42f066 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;