mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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>
This commit is contained in:
parent
a30ccf1a9e
commit
b2bfe5915d
1 changed files with 1 additions and 2 deletions
|
@ -274,10 +274,9 @@ static inline void rpc_task_set_debuginfo(struct rpc_task *task)
|
||||||
|
|
||||||
static void rpc_set_active(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);
|
rpc_task_set_debuginfo(task);
|
||||||
set_bit(RPC_TASK_ACTIVE, &task->tk_runstate);
|
set_bit(RPC_TASK_ACTIVE, &task->tk_runstate);
|
||||||
|
trace_rpc_task_begin(task->tk_client, task, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue