diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-13 10:36:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-22 08:58:24 -0400 |
commit | ca8acf8d84029b395ade8d4562dae2108bb00c17 (patch) | |
tree | 462c32eb1c98c5eb8698618b9b524c57a344c0e2 /fs/nfs/nfs4proc.c | |
parent | fbc6f7c233ff0a7e98f5dc2837b08adf03aa9376 (diff) |
NFSv4: Add tracepoints for debugging delegations
Set up tracepoints to track when delegations are set, reclaimed,
returned by the client, or recalled by the server.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 4b3ba92b0e10..cbbaee27bf82 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4802,6 +4802,7 @@ static void nfs4_delegreturn_done(struct rpc_task *task, void *calldata) | |||
4802 | if (!nfs4_sequence_done(task, &data->res.seq_res)) | 4802 | if (!nfs4_sequence_done(task, &data->res.seq_res)) |
4803 | return; | 4803 | return; |
4804 | 4804 | ||
4805 | trace_nfs4_delegreturn_exit(&data->args, &data->res, task->tk_status); | ||
4805 | switch (task->tk_status) { | 4806 | switch (task->tk_status) { |
4806 | case -NFS4ERR_STALE_STATEID: | 4807 | case -NFS4ERR_STALE_STATEID: |
4807 | case -NFS4ERR_EXPIRED: | 4808 | case -NFS4ERR_EXPIRED: |
@@ -4905,6 +4906,7 @@ int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4 | |||
4905 | int err; | 4906 | int err; |
4906 | do { | 4907 | do { |
4907 | err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); | 4908 | err = _nfs4_proc_delegreturn(inode, cred, stateid, issync); |
4909 | trace_nfs4_delegreturn(inode, err); | ||
4908 | switch (err) { | 4910 | switch (err) { |
4909 | case -NFS4ERR_STALE_STATEID: | 4911 | case -NFS4ERR_STALE_STATEID: |
4910 | case -NFS4ERR_EXPIRED: | 4912 | case -NFS4ERR_EXPIRED: |