diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-05-14 21:57:14 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-05-18 19:44:04 +0200 |
commit | 87512386e951ee28ba2e7ef32b843ac97621d371 (patch) | |
tree | acd58f5aabef9610b3ea0dd0853d5c59700f4f5e /fs/nfsd/nfs4proc.c | |
parent | NFSD: Add an nfsd_cb_lm_notify tracepoint (diff) | |
download | linux-87512386e951ee28ba2e7ef32b843ac97621d371.tar.xz linux-87512386e951ee28ba2e7ef32b843ac97621d371.zip |
NFSD: Add an nfsd_cb_offload tracepoint
Record the arguments of CB_OFFLOAD callbacks so we can better
observe asynchronous copy-offload behavior. For example:
nfsd-995 [008] 7721.934222: nfsd_cb_offload:
addr=192.168.2.51:0 client 6092a47c:35a43fc1 fh_hash=0x8739113a
count=116528 status=0
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Olga Kornievskaia <kolga@netapp.com>
Cc: Dai Ngo <Dai.Ngo@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index f4ce93d7f26e..426b232ca9fd 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1497,6 +1497,8 @@ do_callback: memcpy(&cb_copy->fh, ©->fh, sizeof(copy->fh)); nfsd4_init_cb(&cb_copy->cp_cb, cb_copy->cp_clp, &nfsd4_cb_offload_ops, NFSPROC4_CLNT_CB_OFFLOAD); + trace_nfsd_cb_offload(copy->cp_clp, ©->cp_res.cb_stateid, + ©->fh, copy->cp_count, copy->nfserr); nfsd4_run_cb(&cb_copy->cp_cb); out: if (!copy->cp_intra) |