aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-12 16:19:27 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-22 08:58:21 -0400
commit42113a75399353d87baf63956ab8f450958f1c8f (patch)
treef6829bd87220a89d633764ac0cc4d0d746bde120 /fs/nfs/nfs4proc.c
parentc6d01c6f9bf94075a726b3103a7e90d981017326 (diff)
NFSv4: Add tracepoints for debugging file open
Set up basic tracepoints for debugging NFSv4 file open/close Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 5f228edbb876..d609198724ed 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1442,6 +1442,7 @@ static int nfs4_do_open_reclaim(struct nfs_open_context *ctx, struct nfs4_state
1442 int err; 1442 int err;
1443 do { 1443 do {
1444 err = _nfs4_do_open_reclaim(ctx, state); 1444 err = _nfs4_do_open_reclaim(ctx, state);
1445 trace_nfs4_open_reclaim(ctx, 0, err);
1445 if (nfs4_clear_cap_atomic_open_v1(server, err, &exception)) 1446 if (nfs4_clear_cap_atomic_open_v1(server, err, &exception))
1446 continue; 1447 continue;
1447 if (err != -NFS4ERR_DELAY) 1448 if (err != -NFS4ERR_DELAY)
@@ -1897,6 +1898,7 @@ static int nfs4_do_open_expired(struct nfs_open_context *ctx, struct nfs4_state
1897 1898
1898 do { 1899 do {
1899 err = _nfs4_open_expired(ctx, state); 1900 err = _nfs4_open_expired(ctx, state);
1901 trace_nfs4_open_expired(ctx, 0, err);
1900 if (nfs4_clear_cap_atomic_open_v1(server, err, &exception)) 1902 if (nfs4_clear_cap_atomic_open_v1(server, err, &exception))
1901 continue; 1903 continue;
1902 switch (err) { 1904 switch (err) {
@@ -2199,6 +2201,7 @@ static struct nfs4_state *nfs4_do_open(struct inode *dir,
2199 do { 2201 do {
2200 status = _nfs4_do_open(dir, ctx, flags, sattr, label); 2202 status = _nfs4_do_open(dir, ctx, flags, sattr, label);
2201 res = ctx->state; 2203 res = ctx->state;
2204 trace_nfs4_open_file(ctx, flags, status);
2202 if (status == 0) 2205 if (status == 0)
2203 break; 2206 break;
2204 /* NOTE: BAD_SEQID means the server and client disagree about the 2207 /* NOTE: BAD_SEQID means the server and client disagree about the
@@ -2389,6 +2392,7 @@ static void nfs4_close_done(struct rpc_task *task, void *data)
2389 dprintk("%s: begin!\n", __func__); 2392 dprintk("%s: begin!\n", __func__);
2390 if (!nfs4_sequence_done(task, &calldata->res.seq_res)) 2393 if (!nfs4_sequence_done(task, &calldata->res.seq_res))
2391 return; 2394 return;
2395 trace_nfs4_close(state, &calldata->arg, &calldata->res, task->tk_status);
2392 /* hmm. we are done with the inode, and in the process of freeing 2396 /* hmm. we are done with the inode, and in the process of freeing
2393 * the state_owner. we keep this around to process errors 2397 * the state_owner. we keep this around to process errors
2394 */ 2398 */