diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-07-18 09:32:17 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-07-18 15:50:28 -0400 |
commit | d5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e (patch) | |
tree | e81e74971e58837a9986c48cf38a2e6160a0265c /fs/nfs/pnfs.c | |
parent | 58bbeab425c6c5e318f5b6ae31d351331ddfb34b (diff) | |
download | lwn-d5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e.tar.gz lwn-d5b9216fd5114be4ed98ca9c1ecc5f164cd8cf5e.zip |
pnfs/flexfiles: Add tracepoints for detecting pnfs fallback to MDS
Add tracepoints to allow debugging of the event chain leading to
a pnfs fallback to doing I/O through the MDS.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 758917463700..75bd5b552ba4 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -2037,6 +2037,8 @@ lookup_again: out_put_layout_hdr: if (first) pnfs_clear_first_layoutget(lo); + trace_pnfs_update_layout(ino, pos, count, iomode, lo, lseg, + PNFS_UPDATE_LAYOUT_EXIT); pnfs_put_layout_hdr(lo); out: dprintk("%s: inode %s/%llu pNFS layout segment %s for " |