Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SUNRPC: Ensure rpc_task->tk_pid is available for tracepoints

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

+2 -2
+1 -1
include/linux/sunrpc/sched.h
··· 79 79 unsigned short tk_flags; /* misc flags */ 80 80 unsigned short tk_timeouts; /* maj timeouts */ 81 81 82 - #ifdef RPC_DEBUG 82 + #if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS) 83 83 unsigned short tk_pid; /* debugging aid */ 84 84 #endif 85 85 unsigned char tk_priority : 2,/* Task priority */
+1 -1
net/sunrpc/sched.c
··· 258 258 return 0; 259 259 } 260 260 261 - #ifdef RPC_DEBUG 261 + #if defined(RPC_DEBUG) || defined(RPC_TRACEPOINTS) 262 262 static void rpc_task_set_debuginfo(struct rpc_task *task) 263 263 { 264 264 static atomic_t rpc_pid;