diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-11-03 13:46:06 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-11-17 16:43:44 -0500 |
commit | b2bfe5915d5fe7577221031a39ac722a0a2a1199 (patch) | |
tree | 7129dd292d22252e7663f57fd3168e2c3a381a89 /net/sunrpc | |
parent | a30ccf1a9eb8c01f37675758f6359a968193d96e (diff) | |
download | linux-stable-b2bfe5915d5fe7577221031a39ac722a0a2a1199.tar.gz linux-stable-b2bfe5915d5fe7577221031a39ac722a0a2a1199.tar.bz2 linux-stable-b2bfe5915d5fe7577221031a39ac722a0a2a1199.zip |
sunrpc: Fix rpc_task_begin trace point
The rpc_task_begin trace point always display a task ID of zero.
Move the trace point call site so that it picks up the new task ID.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/sched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 0cc83839c13c..f9db5fe52d36 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -274,10 +274,9 @@ static inline void rpc_task_set_debuginfo(struct rpc_task *task) static void rpc_set_active(struct rpc_task *task) { - trace_rpc_task_begin(task->tk_client, task, NULL); - rpc_task_set_debuginfo(task); set_bit(RPC_TASK_ACTIVE, &task->tk_runstate); + trace_rpc_task_begin(task->tk_client, task, NULL); } /* |