aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2018-03-27 10:53:54 -0400
committerJ. Bruce Fields <bfields@redhat.com>2018-04-03 15:08:15 -0400
commitfff4080b2f1389ecf3028d72eb70e1837df48b01 (patch)
treea5d1cc9ebca0828441b4196c789fb68b3133c242 /fs/nfsd/nfs4proc.c
parent87c5942e8fae81ac296267654a047eb2db81592b (diff)
nfsd: Trace NFSv4 COMPOUND execution
This helps record the identity and timing of the ops in each NFSv4 COMPOUND, replacing dprintk calls that did much the same thing. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 250e0c550fd8..c6157ece46b1 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1721,12 +1721,10 @@ nfsd4_proc_compound(struct svc_rqst *rqstp)
1721 goto encode_op; 1721 goto encode_op;
1722 } 1722 }
1723 1723
1724 trace_nfsd_compound(rqstp, args->opcnt);
1724 while (!status && resp->opcnt < args->opcnt) { 1725 while (!status && resp->opcnt < args->opcnt) {
1725 op = &args->ops[resp->opcnt++]; 1726 op = &args->ops[resp->opcnt++];
1726 1727
1727 dprintk("nfsv4 compound op #%d/%d: %d (%s)\n",
1728 resp->opcnt, args->opcnt, op->opnum,
1729 nfsd4_op_name(op->opnum));
1730 /* 1728 /*
1731 * The XDR decode routines may have pre-set op->status; 1729 * The XDR decode routines may have pre-set op->status;
1732 * for example, if there is a miscellaneous XDR error 1730 * for example, if there is a miscellaneous XDR error
@@ -1800,9 +1798,8 @@ encode_op:
1800 status = op->status; 1798 status = op->status;
1801 } 1799 }
1802 1800
1803 dprintk("nfsv4 compound op %p opcnt %d #%d: %d: status %d\n", 1801 trace_nfsd_compound_status(args->opcnt, resp->opcnt, status,
1804 args->ops, args->opcnt, resp->opcnt, op->opnum, 1802 nfsd4_op_name(op->opnum));
1805 be32_to_cpu(status));
1806 1803
1807 nfsd4_cstate_clear_replay(cstate); 1804 nfsd4_cstate_clear_replay(cstate);
1808 nfsd4_increment_op_stats(op->opnum); 1805 nfsd4_increment_op_stats(op->opnum);