Skip to content

Commit a19b478

Browse files
author
Trond Myklebust
committed
NFS: Report the stateid + status in trace_nfs4_layoutreturn_on_close()
Ensure we correctly report the stateid and status in the layoutreturn on close tracepoint. Signed-off-by: Trond Myklebust <[email protected]>
1 parent 7de62bc commit a19b478

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/nfs/nfs4trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ TRACE_EVENT(nfs4_layoutget,
19931993

19941994
DEFINE_NFS4_INODE_STATEID_EVENT(nfs4_layoutcommit);
19951995
DEFINE_NFS4_INODE_STATEID_EVENT(nfs4_layoutreturn);
1996-
DEFINE_NFS4_INODE_EVENT(nfs4_layoutreturn_on_close);
1996+
DEFINE_NFS4_INODE_STATEID_EVENT(nfs4_layoutreturn_on_close);
19971997

19981998
TRACE_DEFINE_ENUM(PNFS_UPDATE_LAYOUT_UNKNOWN);
19991999
TRACE_DEFINE_ENUM(PNFS_UPDATE_LAYOUT_NO_PNFS);

fs/nfs/pnfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,12 +1549,12 @@ void pnfs_roc_release(struct nfs4_layoutreturn_args *args,
15491549
default:
15501550
arg_stateid = &args->stateid;
15511551
}
1552+
trace_nfs4_layoutreturn_on_close(args->inode, &args->stateid, ret);
15521553
pnfs_layoutreturn_free_lsegs(lo, arg_stateid, &args->range,
15531554
res_stateid);
15541555
if (ld_private && ld_private->ops && ld_private->ops->free)
15551556
ld_private->ops->free(ld_private);
15561557
pnfs_put_layout_hdr(lo);
1557-
trace_nfs4_layoutreturn_on_close(args->inode, 0);
15581558
}
15591559

15601560
bool pnfs_wait_on_layoutreturn(struct inode *ino, struct rpc_task *task)

0 commit comments

Comments
 (0)